Nid*_*T T 6 angularjs angular-ui-grid
在加载Ui-Grid In IE时抛出错误信息 -
[true] [SYSERR] Multiple definitions of a property not allowed in strict mode [object Object]
Run Code Online (Sandbox Code Playgroud)
问题仅出现在IE中,不会在FireFox和Chrome中引发任何错误.在IE Version-11上测试过.
提前致谢.
作为错误状态,您正在使用具有多个具有相同名称的属性的对象.就像是 :
var obj= {
property1: 0,
property2: 1,
property1: 2
};
Run Code Online (Sandbox Code Playgroud)
打印上层对象会导致:
{ property1: 2, property2: 1 }
Run Code Online (Sandbox Code Playgroud)
另外搜索堆栈溢出,您可以找到更详细的答案,为什么在Internet Explorer中输出此错误
当您有其他人编写的长代码时,很难手动找到多个定义.
我使用了http://jshint.com/并在那里粘贴了代码,它向我展示了所有重复的警告,并修复了所有工作.
| 归档时间: |
|
| 查看次数: |
13389 次 |
| 最近记录: |