原文:echarts 解决“There is a chart instance already initialized on the dom”问题

解决办法: 在重复调用之前先销毁之前的echarts if this.chart null amp amp this.chart amp amp this.chart undefined this.chart.dispose 销毁 this.chart this. echarts.init this. el this.chart.setOption option ...

2022-03-14 18:46 0 896 推荐指数:

查看详情

There is a chart instance already initialized on the dom!警告

使用Echarts插件的时候,多次加载会出现There is a chart instance already initialized on the dom.这个错误,改插件已经加载完成。 并且如果你图表中定义了点击方法,多次覆盖之后,点击方法会触发多次 解决方法: 在方法最外层定义全局变量 ...

Wed Mar 27 18:16:00 CST 2019 0 744
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM