52,797
社区成员
发帖
与我相关
我的任务
分享
var cityStore=new Ext.data.JsonStore({
url:'GetArea?Kind=p',
root:'Citys',
fields:['id','city_id','city']
});
<script>
var res_um_type = {totalCount:2,list:[{a:'a1',b:'b1'},{a:'a2',b:'b2'}]};
var typeData = new Ext.data.JsonStore({
totalProperty: "totalCount",
root: "list",
fields: ['a','b'],
data:res_um_type,
autoLoad:true
});
alert(typeData.getAt(0).get("a"));
</script>