---
title: "json字符串放入jsonstore中"
author: "fourfire"
date: "2009-03-27T00:36:36Z"
tags: []
slug: "json-jsonstore"
draft: false
lastmod: "2009-03-27T00:36:36Z"
id: 355856
url: "https://fourfire.iteye.com/blog/355856"
---

```js
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好像不行