1
我需要在Extjs中使用的路由中傳遞三個參數,我試着給出如下但它不工作,會是什麼問題。Extjs路由器傳遞多個參數
routes : {
':id:subid:pagetype': {
action: 'renderPage'
}
}
這是我發起路線呼叫的地方。
callRouter: function(field) {
if(!Ext.isEmpty(field)){
this.redirectTo(field.id+':'+field.subId+':'+field.pageType);
}
}
這是操作方法我用
navigatePage: function(id,subid,pagetype) {}
你試過'」 :id /:subid /:pagetype''和'this.redirect(field.id +'/'+ field.subId +'/'+ field.pageType)'? –
@CD ..非常感謝它:) :) – user1058913
很好,我已經添加它作爲答案... –