ext js 常见开发报错总结

Microsoft JScript 运行时错误: 'events' 为空或不是对象

 一般是 最后一个item 块的{}多了逗号

 {

                     xtype: "combo",

                     triggerAction: "all",

                     mode: "remote",

                     minChars: 1,

                     queryParam: "search",

                     forceSelection: true,

                     editable: true,

                     hiddenName: "cbSuppliersCode",

                     id: "cbIdSuppliersCode",

                     fieldLabel: "供应商代码",

                     allowBlank: false,

                     valueField: "id",

                     displayField: "value",

                     store: new Ext.data.Store({

                         proxy: new Ext.data.HttpProxy({ url: "http://www.cnblogs.com/AppHandler/Suppliers/Suppliers.ashx?Flag=comboData", method: 'POST' }), // 数据源

                         reader: new Ext.data.JsonReader({ totalProperty: "totalProperty", root: "root", fields: [{ name: 'id' }, { name: 'value'}] })// 如何解析

                     })

                 },  ///---------------- 这里多了逗号----------------------------

			]

            });

  

你可能感兴趣的:(ext)