Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sencha touch Sencha触摸查询_Sencha Touch - Fatal编程技术网

Sencha touch Sencha触摸查询

Sencha touch Sencha触摸查询,sencha-touch,Sencha Touch,如何在sencha touch中添加querystring ?name=jake as localhost/JSONDemo/XMLToJson.aspx?name=jake 我的代码是 Ext.regStore('NewsItems', { model: 'NewsItem', proxy: { type: 'ajax', url: 'XMLToJson.aspx', reader: { ty

如何在sencha touch中添加querystring

?name=jake as

localhost/JSONDemo/XMLToJson.aspx?name=jake

我的代码是

Ext.regStore('NewsItems', {

    model: 'NewsItem',

       proxy: {
        type: 'ajax',
        url: 'XMLToJson.aspx', 
        reader: { 
            type: 'json',
            root: 'liste.dokuman'
        }
    },

    autoLoad: true
});

您可以使用代理对象可用的
extraParams
属性传递其他参数。以下是一个例子:

 Ext.regStore('NewsItems', {

    model: 'NewsItem',

       proxy: {
        type: 'ajax',
        url: 'XMLToJson.aspx', 
        extraParams: {
              name: 'jack'
        },
        reader: { 
            type: 'json',
            root: 'liste.dokuman'
        }
    },

    autoLoad: true
});