2011-09-10 116 views
1

我是Extjs4的新手。在我使用loader: new Ext.tree.TreeLoader() 時,Extjs4裝載程序不工作。它顯示像「Ext.tree.TreeLoader不是構造函數」的錯誤。它在extjs舊版本中正常工作。 請幫幫我。在此先感謝Ext.tree.TreeLoader不是構造函數錯誤

回答

2

在extjs 4組件Ext.tree.TreeLoader ist不再支持,現在你可以使用Ext.ComponentLoader,但我建議你使用Ext.data.TreeStore你可以配置加載類似Ext.tree.TreeLoader您的數據。對於文檔使用ExtJS的4 API .. http://dev.sencha.com/deploy/ext-4.0.2a/docs/#/api/Ext.data.TreeStore

也可以檢查一些例子,他們有: http://dev.sencha.com/deploy/ext-4.0.2a/examples/#sample-6

http://dev.sencha.com/deploy/ext-4.0.2a/examples/tree/check-tree.js