首页 > echarts 里 “echarts.util.each” 是啥意思?

echarts 里 “echarts.util.each” 是啥意思?

http://echarts.baidu.com/gallery/editor.html?c=line-easing

里源码 有个 echarts.util.each 是啥意思?
我看文档也没有这个方法啊


根据名称初步判断是遍历,可能是jquery中的each,后来在GitHub上看了一下源码,在最后几行发现echarts.util是将zrUtil中的map,each,filter...等函数暴露到echarts上面,其实就是zrender/core/util,而each函数就在里面,而调用的就是原生js里面的forEach

【热门文章】
【热门文章】