javascript 函数 .jstree() 的 js 树错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15812781/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-27 02:11:31 来源:igfitidea点击:
js Tree error for function .jstree()
提问by Monika D
I am implementing a jstree in mvc4, but when I run my application no tree view is displayed. I have tried to track the error with Firebug and found the following error:
我在 mvc4 中实现了一个 jstree,但是当我运行我的应用程序时,没有显示树视图。我尝试使用 Firebug 跟踪错误并发现以下错误:
"TypeError: $(...).jstree is not a function $("#divtree").jstree();"
采纳答案by Nix
Follow the guide on https://github.com/vakata/jstree
按照https://github.com/vakata/jstree上的指南进行操作
<script src="/path/to/jstree.min.js"></script>
<script>
jQuery(function($) {
("#divtree").jstree();
});
</script>