echarts源码学习

看到echarts源码dispatch timelinedata时的这一段

timelineOption.data[self.currentIndex].name != null ? timelineOption.data[self.currentIndex].name : timelineOption.data[self.currentIndex]

timelineOption.data[self.currentIndex].name为非空,将timelineOption.data[self.currentIndex].name赋值给自身,否则保持timelineOption.data[self.currentIndex]进行下一轮取值

猜你喜欢

转载自blog.csdn.net/qq_39793127/article/details/79487753
今日推荐