标签:
myReader = new Ext.data.JsonReader({ root : ‘data‘, fields : [ { name : ‘check‘, type : ‘string‘ }, { name : ‘uuid‘, type : ‘string‘ }, { name : ‘dev_id‘, type : ‘string‘ }, { name : ‘dev_name‘, type : ‘string‘ }, { name : ‘apply_flag‘, type : ‘string‘ }, { name : ‘date_from‘, type : ‘string‘ }, { name : ‘date_to‘, type : ‘string‘ }, { name : ‘remark‘, type : ‘string‘ } ] });
proxy=new Ext.data.ScriptTagProxy({ url : ‘http://192.168.191.1:8080/server/map_t_dev_list/querypaging.do?start=0&limit=20&dev_id=&dev_name=&apply_flag=&date_from=&date_to=&remark=&‘ });
proxy.doRequest(‘read‘, null, {‘aa‘:‘aaa‘}, myReader, function(a,b,c){console.log(a);console.log(b);console.log(c);}, this,null);
这里的action仅仅是用了read,如果用update目前尚不清楚,会报错。希望有知道的Ext爱好者解答!
标签:
原文地址:http://my.oschina.net/u/555061/blog/502637