Sencha Touch 小细节之----store请求参数为xml使其能与webservice结合

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});
相关文章
相关标签/搜索