在使用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'
}
}
});
本文介绍如何在Ext.js框架的Ext.data.Store配置中禁用默认的缓存破坏参数_dc,通过设置noCache属性为false来避免该参数被附加到请求URL上。
531

被折叠的 条评论
为什么被折叠?



