echart 不显示不报错
检查方法:
1、id是否重复
2、没有设置高度
<div id="chart_id" style="width:100%;height:376px"></div>
3、确保dom元素已经挂载到页面中,初始化echart写在mounted中
mounted(){ this.initEchart() },
或者使用$nextTick
this.$nextTick(() => { this.initEchart();
});
本文来自博客园,作者:沉迷编程的程序员,转载请注明原文链接:https://www.cnblogs.com/codeDevotee/p/14763449.html
欢迎各位找我代写程序,python、c#、web等都可以,加我请注明博客园微信:A15919195482