这个问题在这里已经有了答案:
Object.defineProperty alternative for IE8
(2 个回答)
7年前关闭。
我正在研究一种 JSON 查询语言,该项目在除 IE8 之外的所有浏览器中都能正常工作。
我收到了 Object doesn't support this action
在 IE8 中。
Object.defineProperty(FJQL, c, {
get: function(){
return (new Query(this, this.records))[c];
}
});
有没有其他解决方案?
谢谢....
最佳答案
IE8 does not support getter/setter functions on properties of non DOM objects.
所以在这里你需要使用完整的getter函数
请浏览here .它给你答案。:)
关于javascript - Object.defineProperty 在 IE8 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25950791/