现在的位置: 首页 > 综合 > 正文

ExtJs用Store获取数据时取消参数 _dc

2013年03月29日 ⁄ 综合 ⁄ 共 371字 ⁄ 字号 评论关闭

在使用Ext.data.Store时,发现一直向后台出传入参数_dc,

查阅资料发现了取消参数_dc的方法(初学者,目前还不明白_dc的作用)。

参阅:http://www.sencha.com/forum/showthread.php?126931-what-is-_dc-parameter-in-url

 var allSurveyGridStore = Ext.create('Ext.data.Store', {
                model : 'surveyModel', 
                autoLoad : true, 
                autoDestroy : true, 
                proxy : { 
                         type : 'ajax', 
                         url : 'findAllSurvey.action', 
                         noCache: false,//设置为false 则不会向后台传参 _dc 
                         reader : { 
                                 type : 'json', 
                                  root : 'list' 
                          } 
                 } 
       });

抱歉!评论已关闭.