else{
// 这里代码应该怎么写我才能让grid.Panel显示新的数据内容?
Ext.data.StoreManager.lookup('simpsonsStore').load({params:{name:'xxxxx'}})
}
具体参考store的load方法http://docs.sencha.com/extjs/4.1.3/#!/api/Ext.data.Store-method-load
// 这里代码应该怎么写我才能让grid.Panel显示新的数据内容?
Ext.data.StoreManager.lookup('simpsonsStore').load({params:{name:'xxxxx'}})
}
具体参考store的load方法http://docs.sencha.com/extjs/4.1.3/#!/api/Ext.data.Store-method-load
哦,好的,如果这样写就会访问我指定的url:'class/testData.php 吧? 然后参数即是{params:{name:'xxxxx'}}指定的吧?
你得到當前store,然后this.store.refresh();
你得到當前store,然后this.store.refresh();
示例代码:http://www.itdatum.net/webui/extjs/2014/08/7919.html
在线演示:http://www.itdatum.net/online/extjs/examples-itdatum/nested-grid/nested-grid.html