寻找原因: 

    <1> 查看调用使用图表的id是否正确

    <2> 不要将echarts.js文件放在<head></head> 里面,容易阻塞后面的html,放在</body>之前。

    <3> vue中使用:echarts.init()应该放在mounted()中,否则获取不到dom.  (我遇到的是这种)

 

错误详情: 页面是空白,控制台报错: 

 
Error:Cannot read property 'getAttribute' of null

解决代码:

 Error:Cannot read property 'getAttribute' of null

 

 

相关文章:

  • 2021-06-12
  • 2021-04-28
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2022-01-08
  • 2021-05-23
  • 2021-12-22
  • 2022-12-23
  • 2021-05-02
  • 2022-12-23
相关资源
相似解决方案