sencha touch store 跨域

var store = new Ext.data.Store({
     model : 'Prize',
     sorters : 'VCLB',
     grouper : {
      groupFn : function(record) {
       return record.get('VCLB')+ "<span style='float:right; margin-right:20px;'>"+record.get('QISUM')+"</span>";
      }
     },
     // pageSize : 5,
     autoLoad : false,
     listeners : {
      beforeload : function(store, operation, eOpts) {
       var param = {
        id : 6,
        i_iduser : 'i_iduser'
       };
       store.setParams(param);
      }
     },
     proxy : {
      type : 'jsonp',
      url : basepath + 'phone/d7/d7yw/service.action',
      actionMethods : {
       read : 'POST'
      },
      reader : {
       type : 'json',
       rootProperty : 'data',
       callbackKey : 'callback'
      }
     }
    });

猜你喜欢

转载自xuxingyin.iteye.com/blog/2013745