2013-01-19 5 views

답변

5
setInterval(function(){ 
    // Use Ext.getStore to reference your store from the controller 
    var myStore = Ext.getStore('YourStore'); 
    // Pass in an object of the changes you want to be made to the store 
    myStore.proxy.extraParams = { key:'sencha'}; // replace with your own object 
    myStore.load(); 

},3000); 
+3

extraParams는 각 요청과 함께 제출되는 매개 변수입니다. 특정로드 조작에 param을 적용하려면'load ({params : {key : 'sencha'}})'를 호출하여 적용해야합니다. 매번 extraParams를 변경하는 것은 좋지 않은 디자인입니다. – sra

관련 문제