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

mac2022-06-30  87

 

原因,多次使用

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

解决方案

设为全局

 

转载于:https://www.cnblogs.com/weibanggang/p/11357979.html

最新回复(0)