2012-01-10 39 views

回答

3

像這樣的東西應該工作:

jstree = $.jstree._reference(root_element); // root_element is the selector for the element jstree is attached to (element.jstree({...})) 
jstree._get_settings().search.search_method = 'jstree_title_contains'; // or 'contains' or 'jstree_contains' 
+0

所以,如果我有一個id = 「樹」 我只是嘗試$( '#樹')._ get_settings()search.search_method = 'jstree_title_contains'。我對嗎 ? – 2012-01-10 18:45:46

+0

你必須先獲得參考。你有沒有像上面那樣嘗試過? – glortho 2012-01-10 19:08:31

+0

謝謝。有用! – 2012-01-10 19:35:24

相關問題