javascript - 如何在 IE11 中提供 document.all

标签 javascript internet-explorer-11

看起来 document.all 方法在 IE11 中不可用。那么提供的最佳方式是什么,或者有什么替代方法?

最佳答案

这不是标准的,不应使用。 根据 MDN:https://developer.mozilla.org/en-US/docs/Web/API/Document#

根据微软:https://msdn.microsoft.com/library/bg182625(v=vs.85).aspx#docmode

改用document.getElementById

关于javascript - 如何在 IE11 中提供 document.all,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46928972/

相关文章:

css - 即 11 : flex grow parent issue

html - Internet Explorer 中图像的大小问题

internet-explorer-11 - OpenLayers:在 Internet Explorer 中不起作用

javascript - 如何动态检测浏览器视口(viewport)大小的变化?

javascript - 如何使用 VueJS 动态添加属性?

php - Backbone.js model.destroy() 不发送删除请求

html - 如何防止 Windows 8.1/8 上的 Modern UI IE 11 自动缩放?

css - 使用 CSS 媒体查询在特定屏幕尺寸上定位 IE11

javascript - 文本区域中空行的值是多少?

javascript - 在jquery中设置item的值