jQuery怎么去掉标签的hover效果

今天项目中遇到jquery去掉hover效果的问题,开始以为直接unbind(“hover”)就可以搞定,可是实际验证这个方法并没有作用,正确的使用方法应该是下面这样:

/* 这种方法是新增的,在老的版本里是无法使用的 */

$(#hover_div).unbind(mouseenter,mouseleave);

/* 这种方法正确的,新老版本皆可用,推介使用这种方法,可以兼容新旧版本*/

$(#hover_div).unbind(mouseenter).unbind(mouseleave);
原文地址:https://www.cnblogs.com/spiders/p/5829690.html