大家好,我通过JsonStore向服务器端获取数据,如下:var store = new Ext.data.JsonStore({
url : 'doc.do?method=getFile',
autoLoad : true,
baseParams: {temptypeid: -1, doctypeid: -1}, // 默认参数
id : 'name',
fields : [
{name: "id", mapping: "id"},
{name: "docfile", mapping: "docfile"}
]
}),
// 然后我在页面上通过点击一个按钮,重新请求,如下
store.reload({params: {temptypeid: 11, doctypeid: 21}}); // 问题在这里,我在服务器端得到的temptypeid和
// doctypeid值仍为原值(-1, -1),但是我看资料中
// 都是说参数值可以覆盖的啊,请指教,谢谢~~
url : 'doc.do?method=getFile',
autoLoad : true,
baseParams: {temptypeid: -1, doctypeid: -1}, // 默认参数
id : 'name',
fields : [
{name: "id", mapping: "id"},
{name: "docfile", mapping: "docfile"}
]
}),
// 然后我在页面上通过点击一个按钮,重新请求,如下
store.reload({params: {temptypeid: 11, doctypeid: 21}}); // 问题在这里,我在服务器端得到的temptypeid和
// doctypeid值仍为原值(-1, -1),但是我看资料中
// 都是说参数值可以覆盖的啊,请指教,谢谢~~
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货