var myStore = Ext.create("Ext.data.Store", {
model: "User",
proxy: {
type: "ajax",
url : "/users.json",
writer : {
type: "xml"//改变请求参数格式为xml
},
reader: {
type: "xml",
rootProperty: "users"
}
},
autoLoad: true});
转载于:https://my.oschina.net/u/259577/blog/387148