使用jQuery代码的IE错误

时间:2010-09-29 15:36:50

标签: jquery internet-explorer-8

这发生在IE8和IE7中。我不编码支持IE6,所以这与我无关。

我有这个简单的jQuery代码在其他浏览器上运行良好,但在IE上,我收到错误..

  

对象不支持此属性或方法

我已经标记了违规行。

    options.button.click(function (e) {
        options.menu.is(':visible') ? lift() : drop(); // works fine.
        e.stopPropogation(); // error occurs here.
    });

2 个答案:

答案 0 :(得分:5)

拼写错误?

e.stopPropagation();

文档:jQuery API event.stopPropagation()

答案 1 :(得分:1)

尝试使用'event'代替'e'

event.stopPropogation();
相关问题