110,502
社区成员
发帖
与我相关
我的任务
分享
<script type = "text/javascript">
Ext.onReady
(
function()
{
var store = new Ext.data.Store
(
{
proxy : new Ext.data.ScriptTagProxy({url:'sent.ashx'}),
reader: new Ext.data.JsonReader({
successProperty: "successProperty",
totalProperty: "totalProperty",
root: "root",
id: "id"
},
[
{name: 'id'},
{name: 'name'}
]
)
}
);
//store.load({params:{start:0, limit:10}});
store.load({callback:function(records, options, success)
{
alert('info');
alert(success);
}
});
}
);
context.Response.ContentType = "text/plain";
string data = "{id:0,totalProperty:2,successProperty:true,root:[{id:'id1',name:'name1'},{id:'id2',name:'name2'} ]}";
context.Response.Write(data);