Javascript ext.js组合框无值

Javascript ext.js组合框无值,javascript,extjs,combobox,Javascript,Extjs,Combobox,我试图用静态值在ext.js中定义一个组合框,但是显示的组合框只显示3个空操作 代码如下: xtype:"combo", id: "user_flag", fieldLabel: "Status", labelStyle: "width:100px", store: new Ext.data.SimpleStore({ fields: ["value", "name"], data: [ ["-1","Banne

我试图用静态值在ext.js中定义一个组合框,但是显示的组合框只显示3个空操作

代码如下:

xtype:"combo",
id: "user_flag",
fieldLabel: "Status",
labelStyle: "width:100px",
store: new Ext.data.SimpleStore({
            fields: ["value", "name"],
            data: [
                  ["-1","Banned"], ["0", "Inactive"], ["1", "Active"]
                  ]
            }),
disaplayField: "name",
valueField: "value",
selectOnFocus: true,
mode: 'local',
editable: false,
triggerAction: "all"

我做错了什么?

请遵循下一个链接的示例

请尝试以下方法:

xtype:"combo",
id: "user_flag",
fieldLabel: "Status",
labelStyle: "width:100px",
store: new Ext.data.SimpleStore({
            fields: ["value", "name"],
            data: [
                  ["value":"-1","name":"Banned"], ["value":"0","name":"Inactive"], ["value":"1", "name":"Active"]
              ]
            }),
disaplayField: "name",
valueField: "value",
selectOnFocus: true,
mode: 'local',
editable: false,
triggerAction: "all"
xtype:"combo",
id: "user_flag",
fieldLabel: "Status",
labelStyle: "width:100px",
store: new Ext.data.SimpleStore({
            fields: ["value", "name"],
            data: [
                  ["value":"-1","name":"Banned"], ["value":"0","name":"Inactive"], ["value":"1", "name":"Active"]
              ]
            }),
disaplayField: "name",
valueField: "value",
selectOnFocus: true,
mode: 'local',
editable: false,
triggerAction: "all"