1. 程式人生 > >怎麼解決jQuery的Uncaught TypeError: Cannot read property 'init' of undefined這個問題

怎麼解決jQuery的Uncaught TypeError: Cannot read property 'init' of undefined這個問題

function initZtree(){     $.ajax({         url:"assetType_querytype.action",         data:'',         dataType:'json',         type:'post',         async:false, //同步               //資料量大用非同步         success:function(data){             zTreeObj=$.fn.zTree.init($('#ztZtree'),setting,data);         }     }); }

報錯:Uncaught TypeError: Cannot read property 'init' of undefined

那位jQuery的大佬你教教我如何改????