一、总结

一句话总结:关注报的错。可以通过演示样例页面查看源代码的方法,来获取样例所需要的所有css和js。

 

1、如果提高排错效率?

关注错误,看懂错误,有些错误稍微看一下看懂可以节约很多时间 。

 

 

二、错误

echarts.js:11704 Uncaught Error: Component series.wordCloud not exists. Load it first.
    at Function.entity.getClass (echarts.js:11704)
    at ExtendedClass.<anonymous> (echarts.js:20280)
    at Array.forEach (<anonymous>)
    at each$1 (echarts.js:524)
    at ExtendedClass.visitComponent (echarts.js:20263)
    at Function.entity.topologicalTravel (echarts.js:17451)
    at ExtendedClass.mergeOption (echarts.js:20233)
    at ExtendedClass.initBase (echarts.js:20764)
    at ExtendedClass.resetOption (echarts.js:20175)
    at ExtendedClass.setOption (echarts.js:20157)

关注错误,精准打击。

上面错误很明显是引包的错误。

这边明显是差包了,可以把jquery引入或者换个echarts.js的包

 

可以通过演示样例页面查看源代码的方法,来获取样例所需要的所有css和js。

 

比如:字符云

百度echart--Uncaught Error: Component series.wordCloud not exists. Load it first.

源代码js

百度echart--Uncaught Error: Component series.wordCloud not exists. Load it first.

 

差的js一定在页面源码出现的所有js中。

 

 

 

 

 

 

 

 

 

 

 
 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-01-20
  • 2021-09-07
相关资源
相似解决方案