多次执行echarts时出现 there is a chart instance already initialized on the dom

 

原因,多次使用

echarts.init(document.getElementById(this.options.zid));

解决方案

设为全局

 

posted @ 2019-08-15 14:57  韦邦杠  阅读(1798)  评论(0编辑  收藏  举报