IE9 上的 ThumbBarButton

发布于 2024-09-26 15:24:58 字数 261 浏览 1 评论 0原文

我正在尝试使用 document.addEventListener('msthumbnailclick', processSelection, false); 方法将事件附加到按钮,但我给了我一个错误

“对象不支持此属性 或方法”

我尝试了 document.attachEvent 但它不起作用,看起来它并没有真正将函数附加到事件

任何帮助?!

i am trying to use the document.addEventListener('msthumbnailclick', processSelection, false); method to attach the event to the buttons but i gives me an error

"Object doesn't support this property
or method"

i tried document.attachEvent but it's not working, looks like it doesn't really attach the function to the event

any help ?!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

把回忆走一遍 2024-10-03 15:24:58

我最近也遇到了同样的问题。浏览器模式设置为 IE9,但文档模式设置为 IE7 标准。在这种情况下,document.addEventListener 将是未定义的。

要使用 document.addEventListener,您需要确保将文档模式设置为 IE9 标准

如果尚未设置,请按 F12 并手动设置。

问候

I had the same problem recently. The Browser Mode was set to IE9 but the Document Mode was set to IE7 Standars. In that case document.addEventListener will be undefined.

To use document.addEventListener you need to be sure to set the Document Mode to IE9 Standards.

Press F12 and set it by hand if not already set.

Regards

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文