我的 IE 8 页面出现以下错误(该页面在其他浏览器中运行良好)。
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3)
Timestamp: Wed, 10 Sep 2014 06:48:45 UTC
Message: Object doesn't support this property or method
Line: 70532
Char: 5
Code: 0
当我检查提到的文件中的第 70532 行时,我看到了这段代码:
if (!Object.create && !Object.create(null).hasOwnProperty) {
throw new Error("This browser does not support Object.create(null), please polyfil with es5-sham: http://git.io/yBU2rg");
}
Please polyfil with es5-sham是什么意思:
Please polyfil with es5-sham: http://git.io/yBU2rg
我该如何解决这个错误。