</script>
</head>
<body style="padding:0px;margin:10px;">
<div id="grid" style="border:0px solid #cccccc;background-color:#f3f3f3;padding:5px;width:100%;" >
</div>
</body>
</html>
[/code]
//proxy直接去读取josn数据
var ds = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url:'gridjson.jsp'}),
reader: new Ext.data.JsonReader({
totalProperty: 'totalProperty',
root: 'root',
successProperty :'success'
}, [
{name: 'id',mapping:'id',type:'int'},
{name: 'name',mapping:'name',type:'string'},
{name: 'descn',mapping:'descn',type:'string'}
])
});
这个是例子里的代码
var ds= new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url: "listPreArchiveEdit.html?content.method=TestGtSearch&contentPath=/preArchive/1@2/1@299/29@332/4@346/3@456/@458"}),
reader: new Ext.data.JsonReader({
totalProperty:"pageInfo",
root:"data",
fields:[
{name:"密级"},
{name:"办结提示"},
{name:"成文日期"},
{name:"附件"},
{name:"责任者"},
{name:"拟稿部门"},
{name:"签发时间"},
{name:"保管期限"},
{name:"登记号"},
{name:"全
上一页 [1] [2] [3] [4] [5] [6] [7] [8] 下一页