一直觉得在extjs中直接使用,store.getAt(0).set('count',1);就能够直接更新对应的值,但是,一运行直接报undefined,后来才发现不能直接,要这样使用才行,以下sql
- accountStore.on("load", function(){
- var boardMaster=accountStore.getAt(0).set('count',0);
- //alert(boardMaster);//获得正确数据
- accountStore.commitChanges();//提交修改
这样就修改为功了!ide