为什么只有2列有值?我用firebug看了json从后台穿过来每列都有值。
还有下列代码:
//store
var menuStore = Ext.create('Ext.data.Store', {
storeId: 'menuStore',
autoLoad: true,
fields: [
{ name: 'id', mapping: 'id' },
'computername',
'location',
'readerid',
'roomname',
'displays'
],
//grid
var menuGrid = Ext.create('Ext.grid.Panel', {
//layout: 'fit',
store: menuStore,
loadMask: true,
selModel: Ext.create('Ext.selection.CheckboxModel'),
height: '100%',
columns: [
{ header: '编号', daraIndex: 'id', flex: 1 },
{ header: 'com', daraIndex: 'computername', flex: 1 },
{ header: 'ccc', daraIndex: 'readerid', flex: 1 },
{ header: '位置', dataIndex: 'location', flex: 1 },
{ header: '门名称', dataIndex: 'roomname', flex: 1 },
{ header: '当前显示状态', daraIndex: 'displays', flex: 1 } ],
主要代码,值过来了为什么不显示呢 ,各位高手,,求解答啊!!!还有firebug截取的json值:
extjs
还有下列代码:
//store
var menuStore = Ext.create('Ext.data.Store', {
storeId: 'menuStore',
autoLoad: true,
fields: [
{ name: 'id', mapping: 'id' },
'computername',
'location',
'readerid',
'roomname',
'displays'
],
//grid
var menuGrid = Ext.create('Ext.grid.Panel', {
//layout: 'fit',
store: menuStore,
loadMask: true,
selModel: Ext.create('Ext.selection.CheckboxModel'),
height: '100%',
columns: [
{ header: '编号', daraIndex: 'id', flex: 1 },
{ header: 'com', daraIndex: 'computername', flex: 1 },
{ header: 'ccc', daraIndex: 'readerid', flex: 1 },
{ header: '位置', dataIndex: 'location', flex: 1 },
{ header: '门名称', dataIndex: 'roomname', flex: 1 },
{ header: '当前显示状态', daraIndex: 'displays', flex: 1 } ],
主要代码,值过来了为什么不显示呢 ,各位高手,,求解答啊!!!还有firebug截取的json值:
extjs
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货