摘要:
很多时候需要销毁实例,再次重新创建 比如:地图动态lines线条的时候,再次去加载会留下上次线条的痕迹。加个dispose()方法 // 在创建之前销毁 echarts.init(document.getElementById(‘main’)).dispose(); // 销毁实例 var myCh 阅读全文
摘要:
this.chart = echarts.init(document.getElementById('main'), null, { renderer: 'svg' }) this.chart.setOption(option) window.onresize = this.chart.resize 阅读全文