xmlStore的配置项proxy的url不跳转
<script type="text/javascript">
Ext.onReady(function(){
var jsonstore = new Ext.data.Store({
reader:new Ext.data.XmlReader({
totalRecords: "results",
record: "Person",
fields:[
{name:'name'},
{name:'age'},
{name:'sex'},
{name:'birthday'}
]
}),
proxy:new Ext.data.HttpProxy({
url:'index.do?cmd=indexAction'<此处不跳转>
})
})
var _grid = new Ext.grid.GridPanel({
renderTo:'div',
height:200,
width:350,
columns:[
{header:"姓名", dataIndex:'name'},
{header:"年龄", dataIndex:'age'},
{header:"性别", dataIndex:'sex'}
],
store:jsonstore
})
}) ;
</script>
<body style="margin=10 10 10 10">
<div id='div'></div>
</body>
</html>