【发布时间】:2013-04-10 11:11:08
【问题描述】:
我正在尝试将一些函数绑定到一个事件。 以下代码在 Chrome 和 FF 中运行良好,但 IE 对应的代码是什么?
$this.mouseenter(function(){
console.log("inside the mouse enter handler");
});
我试过了,但它在 IE 中不起作用:
$this.bind('mouseenter', function(){
console.log("inside the mouse enter handler");
});
我需要它至少在 IE 9 中工作。
【问题讨论】:
-
您是否尝试使用您的函数传递事件,如下所示:$this.bind('mouseenter', function(event){
标签: javascript jquery internet-explorer binding