Error in mounted hook: “ReferenceError: echarts is not defined“的解决方法
- 欢迎使用Markdown编辑器
- 还有一种办法问题就是
欢迎使用Markdown编辑器
如果这文章的方法还没解决问题
文字地址:https://blog.csdn.net/qq_52359462/article/details/115317350
还有一种办法问题就是
series: [{// name: '采购项目提报',type: 'bar',barWidth: 20,zlevel: 2,itemStyle: {normal: {color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#01B1FF'}, {offset: 1,color: '#033BFF'}], false)}},label: {normal: {show: true,fontSize: 13,color: '#14B6F3',position: 'top',}},data: [90, 70, 98, 97, 96, 70]}]
主语这里的写法:
- ** new echarts.** ,color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [;
- 修改为 **new this. e c h a r t . ∗ ∗ c o l o r : n e w t h i s . echart.** color: new this. echart.∗∗color:newthis.echarts.graphic.LinearGradient(0, 0, 0, 1,;