ITeye博客

jquery如何取消hover事件

kingour1986 · 2011-08-30 10:50 · 编程经验 · Web前端 · Markdown

今天用jquery写hover事件,临时遇到个需求需要遇到特定条件能够取消hover事件,但是使用

 

$("a").unbind("hover");

 起不到任何作用,最后在stackover上查到解决办法:

$("a").unbind('mouseenter mouseleave');

 在jquery的官方文档上有这方面的说明: jQuery documentation

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。