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
    });
}

 

posted @ 2018-05-31 18:17  zhaogaojian  阅读(695)  评论(0编辑  收藏  举报