10
如何从商店获得价值ID?ExtJs - 如何通过id从商店中获取价值?
店等领域
fields: [
{name: "id", type: 'int'},
{name: "name", type: 'String'},...
我需要得到ID - 名值。
我试试这样:
var rec = Ext.StoreMgr.lookup("MyStore").getById(id);
alert(rec.data.name);
我究竟做错了什么?
非常感谢你:) – Andrei