每當我創建一個帶有url的組件時,Ext Js 4將向鏈接添加?undefined。我怎樣才能擺脫這一點?EXT JS 4將查詢字符串添加到鏈接
Ext.onReady(function() {
Ext.create('Ext.toolbar.Toolbar', {"items":[{"text":"Dashboard","xtype":"button","target":"_self","href":"https:\/\/domain.tld\/admin\/"},{"text":"Categories","xtype":"button","menu":{"items":[{"text":"New","xtype":"button","target":"_self","href":"https:\/\/domain.tld\/admin\/category\/create\/"}]}}],"renderTo":"admin_menu","width":"100%"});
});
點擊儀表盤把你帶到https://domain.tld/admin/dashboard?undefined
真正的文檔沒有提到它,但如果你看看配置,它的支持配置選項 – chris 2011-04-29 15:27:53