gpt4 book ai didi

javascript - IE9 抛出 JavaScript 错误 : SCRIPT5007: The value of the property 'getComputedStyle' is null or undefined, 不是函数对象

转载 作者:行者123 更新时间:2023-12-03 10:55:31 24 4
gpt4 key购买 nike

Telrik.web.webresource.axd 文件抛出“SCRIPT5007:属性‘getCompulatedStyle’的值为 null 或未定义,不是 Function 对象”错误。它适用于其他浏览器。谁能建议我如何处理它并进行硬编码。

最佳答案

一般来说,getComputedStyle 是现代浏览器中使用的 JavaScript 函数。例如,它允许您从隐藏元素获取尺寸。

也就是说,如果您的浏览器无法识别该功能,您需要一个填充程序来增强您的浏览器的此功能。

通常使用此函数的 js 库应该提供 polyfill。如果不是这种情况,请自行添加。

https://github.com/jonathantneal/Polyfills-for-IE8/blob/master/getComputedStyle.js

关于javascript - IE9 抛出 JavaScript 错误 : SCRIPT5007: The value of the property 'getComputedStyle' is null or undefined, 不是函数对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28277201/

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