我在mvc4中實現了一個jstree,但是當我運行我的應用程序時,沒有顯示樹視圖。我試圖跟蹤與Firebug的錯誤,並發現了以下錯誤:js函數的樹錯誤.jstree()
"TypeError: $(...).jstree is not a function $("#divtree").jstree();"
我在mvc4中實現了一個jstree,但是當我運行我的應用程序時,沒有顯示樹視圖。我試圖跟蹤與Firebug的錯誤,並發現了以下錯誤:js函數的樹錯誤.jstree()
"TypeError: $(...).jstree is not a function $("#divtree").jstree();"
按照該指南上https://github.com/vakata/jstree
<script src="/path/to/jstree.min.js"></script>
<script>
jQuery(function($) {
("#divtree").jstree();
});
</script>
我使用相同的方式,但仍然沒有成功.. :( – 2013-04-04 13:41:58
愚蠢的錯誤..我又添加了jstree.js文件,並改變了腳本路徑位置..它工作.. :)謝謝... – 2013-04-05 13:56:06
我有同樣的問題,我在wordpress上使用它! – AndroSco 2016-08-29 08:08:34
您需要包括jstree源。 – Nix 2013-04-04 13:33:54
是的..我已經做了這個 例如: – 2013-04-04 13:35:53
首先,你應該嘗試包括jstree函數的JavaScript文件工作 – dreamweiver 2013-04-04 13:36:44