js-解决echarts在使用tab情况下现实不全的问题

加载echarts后,发现除了第一个tab,其他tab里面的图表都没有写渲染出来。

但是,如果设置为active之后,就能够渲染出来。

$(document).ready(function(){ 
                $("#ios").removeClass("active");
                $("#jmeter").removeClass("active");
                $("#ejb").removeClass("active");

于是,可以通过如上代码,在程序里面,将所有tab都设置为active。
然后,在加载结束用js移除active的class。

猜你喜欢

转载自blog.csdn.net/xuwuxiu/article/details/78745008