Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将一些函数中的一些 json 数据传递给函数 live(data) ,并且每两秒后它也会被一个带有 data="" 的函数调用一次。但是我在第 217 行将这个图表变量声明为未定义。帮助将不胜感激:)
this关键字是指load回调内部的图表。
this
load
所以改为:
var length = this.series.length;