当前位置: 代码迷 >> Web前端 >> jquery怎么取消hover事件
  详细解决方案

jquery怎么取消hover事件

热度:276   发布时间:2012-08-29 08:40:14.0
jquery如何取消hover事件

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

?

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

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

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

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

  相关解决方案