Ext.define('addcommodel', {
extend: 'Ext.data.Model',
fields: [
{
name : 'stbId',
mapping : 'stbId'
},
{
name : 'mac',
mapping : 'mac'
} ]
});
var addstore = Ext.create('Ext.data.Store', {
id:'addstore',
model : 'addcommodel',
// fields : [ 'stbId', 'mac' ],
proxy: {
type: 'ajax',
url : 'site.action?otype=getstb',
reader: {
type : 'json',
root : 'root'
}
}
,autoLoad : true
});
var addcombo = Ext.create('Ext.form.field.ComboBox', {
store : addstore,
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载