IE报错:缺少标识符、字符串或数字

在调试ExtJS程序时,在firefox和chrome上都能显示,但一到IE上就报错,后来从左下角的JS报错提示中才发现,原来是JS代码中多加了个逗号。

menu: {
    items: [{
        text: '员工添加',
        iconCls: 'user',
        handler: this.createWindowSave,
        scope: this
    }, {
        text: '员工管理',
        iconCls: 'user',
        handler: this.createWindow,
        scope: this
    },//该处多一个逗号
    ]
}
原文地址:https://www.cnblogs.com/NaughtyBaby/p/4253943.html