首先要弄清楚store在senchatouch中的含义:
拿数据库中的知识来打比方,store就是数据库里的一张表,里面是数据的集合,表都有表结构,表结构就是senchatouch中的model。
假设有个store别名为:poss
取第i条数据:Ext.getStore('poss').getAt(i);
取第i行数据的字段posno值Ext.getStore('poss').getAt(i).get('posno');
清空store内的全部数据:Ext.getStore('poss').removeAll();
store赋值:Ext.getStore("poss").setData(ret.pos); ret.pos为一个json对象