[英]jqTree to obtain tree from Json: “Uncaught TypeError: $(…).tree is not a function”
[英]jqtree uncaught error in console
我無法在 jsfiddle 中復制這個問題,但在我的開發環境中,有些東西破壞了代碼。 我有 duallistbox、ckeditor 4.4.3、jquery 1.9.1 和 jquery ui 1.10.3
Uncaught TypeError: Cannot read property 'fn' of undefinedSimpleWidget.register @ tree.jquery.js:225411../drag_and_drop_handler @ tree.jquery.js:3242s @ tree.jquery.js:1e @ tree.jquery.js:1(anonymous function) @ tree.jquery.js:1
將整個代碼包裝在下面的代碼中修復了問題
(function($) {
// jqtree code
}(jQuery));
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.