Order MouseUp Event
Order MouseUp Event
这是一个理论问题。。。我有两个mouseUp事件。其中一个是从我使用的其他人开发的外部jQuery插件中激发的,这个事件是这样绑定的:
//Add Events for mouse drag / touch swipe action
$(document).bind(self.event_up + self.id, { self: self }, self.mouseUp);
另一个鼠标向上事件,它是由我使用标准代码触发的,类似于这样:
$(document).mouseup(function (e) {
}
});
我的问题很简单,有时一个事件在另一个事件之前启动,有时另一个活动在另一事件之前启动。
有人能解释一下我是否有任何选项可以按某种顺序绑定mouseUp事件吗?
$(document).unbind('mouseup');
$(document).bind(
"mouseup",
function( event ){
event.stopPropagation();
$.externalFunction(event);
yourFunction(event)
}
);
这正是你所需要的。
相关文章:
- issue with FB.Event.subscribe
- Angularjs :$routeChangeStart event
- event.prventDefault()持续多久
- jQuery mouseup在拖离链接后未启动
- <text区域>在我的html中包含event.keycode==13之后,wrap就不起作用了
- KeyDown event for CKeditor
- Javascript events: window.event vs argument reference (funct
- 动态填充Bootstrap选择选择器:change event dos'不起作用
- <td> focusin event .addclass
- 当在文档中拖动mouseup/mouseleve时,我想调用我的Ajax请求
- mouseup出现意外行为
- event.preventDefault阻止ajax调用
- 如何在拖动绑定到“mousedowd,mousemove,mouseup”的锚点时防止重定向
- google.maps.event.addDomListener(window, 'load', fun
- 如何知道鼠标按钮的当前状态(mouseup状态或mousedown状态)
- jQuery event.target is_a_child_of(element)
- event.stopPropagation()在firefox javascript中不起作用
- asp.net text onkeyup event
- javascript可拖动滑块,可在mouseUp上捕捉回中间位置
- Order MouseUp Event