【发布时间】:2012-08-28 22:06:46
【问题描述】:
我正在更改我的代码以与 jQuery 1.8 兼容,但我坚持使用这个不起作用的 hover。当我将同样的东西与click 一起使用时,它起作用了。这是我的代码,谁能告诉我哪里出错了?
$(document).on('hover', '.top-level', function (event) {
$(this).find('.actionfcnt').show();
$(this).find('.dropfcnt').show();
}, function () {
$(this).find('.dropfcnt').hide('blind', function () {
$('.actionfcnt').hide();
});
});
【问题讨论】:
-
使用“鼠标悬停”而不是“悬停”会发生什么?
标签: javascript html jquery hover jquery-events