2012-05-04 75 views
0

我有一个商店定义,我想手动添加数据。商店连接到一个模型,并定义了适当的字段,并实例化商店。Sencha触摸问题与商店

为什么这项工作

Ext.getStore('Inspections').add({"code":"123","descr":"Inspection 123"}); 

为什么这个不行

Ext.getStore('Inspections').loadData([{"code":"123","descr":"Inspection 123"}]); 

我得到LoadData not defined error.

回答