이 코드는 jQuery-1.3.2.min.js와 잘 동작하지만 jQuery-1.6.2.min.js에서는 실행되지 않습니다.jQuery 1.6.2 mouseup not firing
$(function(){
$(document).mousedown(mouseUpAfterDrag);
function mouseUpAfterDrag(e) {
/* You can record the starting position with */
var start_x = e.pageX;
var start_y = e.pageY;
$().mousemove(function(e) {
/* And you can get the distance moved by */
var offset_x = e.pageX - start_x;
var offset_y = e.pageY - start_y;
});
$().one('mouseup', function() {
alert("This will show after mousemove and mouse released.");
$().unbind();
$(document).mousedown(mouseUpAfterDrag);
});
// Using return false prevents browser's default,
// often unwanted mousemove actions (drag & drop)
return false;
}
});
이 코드를 jQuery-1.6.2.min.js에서 작동시키는 방법은 무엇입니까? 모든 솔루션?
오류 메시지가? 방화범을 사용하여보십시오. –
"실행되지 않음"이란 무엇을 의미합니까? – Blazemonger
@ mblase75 mouseup이 (가) 실행되지 않습니다 – Raju