我可以转这个吗:
$(document).bind("mousedown", function(){
n = 1;
});
$(document).bind("mouseup", function(){
n = 2;
});
$(document).bind("mousemove", function(){
n = 3;
});
变成这样:
$(document).bind("mousemove mouseup mousedown", function(e){
if (e.event == mousemove){
n = 3;
}
});
添加更多文本,因为 stackoverflow 说我的帖子主要包含代码