js如何禁用一个事件
JScript code$("#right").mouseenter(function () {});$("#right").mouseleave(function () {});//我想在执行mouseenter的时候把mouseleave给禁用掉,因为在FF浏览器里 mouseenter和mouseleave几乎是同时执行的
------解决方案--------------------
$("#right").mouseenter(function () {});
$("#right").mouseleave(function () {return;});
行不!
------解决方案--------------------
$("#right").unbind('mouseleave');
------解决方案--------------------