2010年6月22日
摘要: Store.getCount()返回的是store中的所有数据记录,然后使用for循环遍历整个store,从而得到每条记录。除了使用getCount()的方法外,还可以使用each()函数,如下面的代码所示。store.each(function(record){ alert(record.get('name')); });store.each(function(record) { alert(r... 阅读全文
posted @ 2010-06-22 10:10 一粒沙 阅读(481) 评论(0) 推荐(0) 编辑