如何在其他事件后禁用Jquery函数?

zsh*_*arp 4 javascript jquery javascript-events

我想在另一个事件发生时禁用特定列表上的悬停事件.

bdu*_*kes 16

您可以使用该unbind功能删除这些事件.

$('#theListId').unbind('mouseenter').unbind('mouseleave');
Run Code Online (Sandbox Code Playgroud)