ITeye博客

json字符串放入jsonstore中

fourfire · 2009-03-27 00:36 · extjs · Markdown

var data=Ext.util.JSON.decode(jsonstr);//字符串转json对象
	    var store=new Ext.data.JsonStore(  {
	        data: data,
	    autoLoad:true,
	    root:'xxx',
	    fields:['no','name','type',"unit","did"]
	    });

用jsonreader好像不行

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。