angularjs - 用户界面网格 : Error "Multiple definitions of a property not allowed in strict mode [object Object]" [ IE- Only ]

标签 angularjs angular-ui-grid

在 IE 中加载 Ui-Grid 时抛出错误消息 -

[true]  [SYSERR] Multiple definitions of a property not allowed in strict mode [object Object]

enter image description here
问题仅在 IE 中,在 FireFox 和 Chrome 中不会引发任何错误。在 IE 版本 11 上测试。

提前致谢。

最佳答案

作为错误状态,您在某处使用了具有多个同名属性的对象。
就像是 :

var obj= {
    property1: 0,
    property2: 1,
    property1: 2
};

打印上部对象结果:
{ property1: 2, property2: 1 }

还搜索了一点堆栈溢出,您可以找到更详细的答案为什么在 Internet Explorer 中输出此错误

What's the purpose of allowing duplicate property names?

关于angularjs - 用户界面网格 : Error "Multiple definitions of a property not allowed in strict mode [object Object]" [ IE- Only ],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35497966/

相关文章:

angularjs - $$animateJs 在使用 oclazyload、uigrid 和 nganimate 时不是函数

css - 用户界面网格 : Combining auto-size column with with pinnedRight results in a strange gap

javascript - 如何使用 Angular 正确重定向用户

javascript - 如果使用 js 在我的网站上没有图像,如何设置手动默认图像?

javascript - 如何在angularjs中将范围变量设置为空

angularjs - 综述 - AngularJS

javascript - angular ui-grid 排序图标显示不正确

angularjs - Angular JS动态地将列添加到ui-grid

angular-ui-grid - 独立的角度 UI 网格是否可行?

javascript - AngularJS 用对象填充 ng-options