Extjs 如何获取jsonstore中的数据

来源:互联网 发布:mysql 选择数据库命令 编辑:程序博客网 时间:2024/05/16 19:30

 

例子:

 var store = new Ext.data.JsonStore({ url:thisForm.action +"?method=childTheme", root: 'datalist', fields: ['title', 'username','loginTimes'] }); var aaa0 = store.load();

获取title的数据:store.getAt(0).get('title')
要循环遍历:store.each(function(record){});

原创粉丝点击