gpt4 book ai didi

jquery - jQuery 代码的 IE 错误

转载 作者:行者123 更新时间:2023-12-01 06:41:12 25 4
gpt4 key购买 nike

这发生在 IE8 和 IE7 中。我编写的代码不是为了支持 IE6,所以这与我无关。

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

Object doesn't support this property or method

我已经标记了有问题的行。

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

最佳答案

拼写错误?

e.stopPropagation();

文档:jQuery API event.stopPropagation()

关于jquery - jQuery 代码的 IE 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3823184/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com