Sencha touch 无法使用AjaxProxy提供参数

Sencha touch 无法使用AjaxProxy提供参数,sencha-touch,extjs,Sencha Touch,Extjs,如何在sencha touch中使用ajaxproxy提供参数?在extjs中,您可以这样做 Ext.Ajax.request({ url: 'a.php/guest/getListGuests', params: {poolId: 13}, scope: this, callback: function(options, success, response) { }); 如何在sencha触控代码中执行此操作 v

如何在sencha touch中使用ajaxproxy提供参数?在extjs中,您可以这样做

Ext.Ajax.request({
        url: 'a.php/guest/getListGuests',
        params: {poolId: 13},
            scope: this,
            callback: function(options, success, response) {
});
如何在sencha触控代码中执行此操作

var detailPanel2 = new Ext.Panel({
        id:'detailPanel2',
        layout:'fit',
         items: [{    
            fullscreen:true,
            xtype: 'list',

            store: new Ext.data.Store({
                model: 'team',
                getGroupString : function(record) {
                    return record.get('name')[0];
                },
                proxy: new Ext.data.AjaxProxy({                        
                    url: 'a.php/guest/getListGuests',
                    extraParams: {
                        poolId: 13
                    },
                    method:'post',
                    reader: {
                            type: 'json',
                            root: 'data',
                             totalCount: 'count'
                                 }  
                }),autoLoad:true 
            }),

            sorters: [{
            property: 'name',
            direction: 'asc'
             }],
            itemTpl:'<font size="4" face="Helvetica, Arial" color="black">{name}</font>',
            grouped: true,
            onItemDisclosure : true,
                  listeners : {
              itemtap : function(record,index,item,e){
                 if (e.getTarget('.x-list-disclosure')) {
                    //Ext.Msg.alert(index);
                    var redirect = 'showpool.php'; 
                    window.location = redirect;
                 } 
                // else { Ext.Msg.alert("Item clicked!");}
               }
             }
        }]

    })

正如您在上面的代码中所看到的,我提供了参数,但这在extjs代码中不起作用。

我看到您正在使用extraParams作为代理,这应该可以很好地工作。您是否在开发者工具->网络选项卡->请求头中检查了参数是否实际运行?你可以试着做一个GET请求并检查url。它现在可以工作了,这是我的错误:P,我从我们的upx服务器调用了一个错误的函数。不管怎么说,泰迪!