Javascript 未捕获类型错误:无法读取属性';模式';空的
获取访问存储区的错误是到itemselector字段,我并没有使用模型,只是使用硬编码值进行测试 未捕获的TypeError:无法读取null的属性“schema” VM398 ext all rtl debug.js?_dc=1444203173414:51423 项目选择器:Javascript 未捕获类型错误:无法读取属性';模式';空的,javascript,extjs,extjs5,Javascript,Extjs,Extjs5,获取访问存储区的错误是到itemselector字段,我并没有使用模型,只是使用硬编码值进行测试 未捕获的TypeError:无法读取null的属性“schema” VM398 ext all rtl debug.js?_dc=1444203173414:51423 项目选择器: items:[{ xtype: 'itemselector', name: 'itemselector', id: 'itemselector-field', imagePath: '.
items:[{
xtype: 'itemselector',
name: 'itemselector',
id: 'itemselector-field',
imagePath: '../ux/images/',
store: 'IS',
displayField: 'period',
valueField: 'period',
value:'period',
allowBlank: false,
msgTarget: 'side',
fromTitle: 'Available',
toTitle: 'Selected'
}]
商店:
Ext.define('Myapp.store.IS', {
extend: 'Ext.data.Store',
/* requires: [
'Myapp.model.JobNode',
'Ext.util.Sorter'
], */
alias: 'store.IS',
fields: ['period'],
data: {
'period': [
'20140525','20140625'
]
},
proxy: {
type: 'memory',
reader: {
type: 'json',
root: 'reader'
}
}
});
你能设置一个fiddle吗?fiddle不提供结果应该是
store:{type:'IS'}
不工作,Ext-js编译器函数名为extractData:function(root,readOptions){var me=this,entityType=readOptions&&readOptions.model?Ext.data.schema.schema.lookupEntity(readOptions.model):me.getModel(),schema=entityType.schema,可以设置fiddle吗?fiddle不提供结果应该是store:{type:'IS'}
不工作,Ext js编译器函数名为IS extractData:function(root,readOptions){var me=this,entityType=readOptions&&readOptions.model?Ext.data.schema.schema.lookupEntity(readOptions.model):me.getModel(),schema=entityType.schema,store:Ext.create('Myapp.store.IS'),store:Ext.create('Myapp.store.IS'),
use Ext.create('Myapp.store.IS')