There is a chart instance already initialized on the dom.
在用echart做表格自适应的时候,每次 resize 都会出现echart警告,虽然不影响echart的展示。
解决方法:全局声明变量,在echart方法外面。注意!是外面,在方法里声明没效果。
var ChartAP; function chartIndex() { if ( ChartAP != null && ChartAP != "" && ChartAP != undefined ) { ChartAP.dispose(); } ChartAP = echarts.init(document.getElementById('wirelessAP')); var optionAP = {}; ChartAP.setOption(optionAP); }
相关推荐
wikiwater 2020-10-27
jczwilliam 2020-08-16
littleFatty 2020-08-16
Aveiox 2020-06-23
阿斌Elements 2020-06-11
zrtlin 2020-11-09
xuebingnan 2020-11-05
heheeheh 2020-10-19
Crazyshark 2020-09-15
softwear 2020-08-21
ZGCdemo 2020-08-16
idning 2020-08-03
jinxiutong 2020-07-26
lanzhusiyu 2020-07-19
Skyline 2020-07-04
xiaofanguan 2020-06-25