在使用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'
}
}
});