timeline吧 关注:767贴子:2,117
  • 1回复贴,共1

关于echart组件实例timeline方法,paly方法应该如何调用?

只看楼主收藏回复

我这样写的,stop方法与next都可以调,就是play调不通啊。
function playOrStop(){
var timeline = chart_site.component.timeline;
var nextIndex = currentIndex+1;
if(isPasue){
timeline.stop();
}else{
timeline.paly(nextIndex,true);
}
}
官方文档:http://echarts.baidu.com/echarts2/doc/doc.html#TimelineInterface


1楼2016-05-12 16:56回复
    先顶!大神赶快出现吧!


    2楼2016-05-12 16:58
    回复