Uncaught TypeError: $(…).orgcharts is not a function

调整js顺序没有解决,最后增加NoConflict解决,注意红色部分

 function initorgcharts() {
     var $jq = jQuery.noConflict(true);
     orgchart = jQuery('#chart-container').orgchart({
     'data': datascource,
     'nodeContent': 'title',
     'verticalDepth': 3,
     'depth': 4
    });
}

猜你喜欢

转载自www.cnblogs.com/zhaogaojian/p/9118242.html