zTree——学习记录之一
时间:2019-05-12 23:25:32
收藏:0
阅读:298
1、官方学习网站(功能强大,使用方便,API文档简洁明了)
http://www.treejs.cn/v3/main.php#_zTreeInfo
2、Uncaught ReferenceError:jQuery is not defined

解决方法:页面jQuery.js引用位置问题,必须在zTree其它js文件之前引用
方法来源:https://www.oschina.net/question/3275524_2234273
3、Uncaught TypeError:Cannot read property ‘init‘ of undefined
解决方案:js文件造成冲突
var $j = jQuery.noConflict(); //自定义一个比较短快捷方式,将变量$的控制权让渡给signalr.min.js
$.fn.zTree.init($("#TreeDemo"), setting, zNodes);//使用jQuery

方法来源:http://blog.sina.com.cn/s/blog_6f48e53701012yrx.html
原文:https://www.cnblogs.com/tinaliu/p/10703309.html
评论(0)