跳过主要内容

restart

restart(includeDelay:Boolean, suppressEvents:Boolean):self

重新启动并从开头开始向前播放。

参数

  • includeDelay:布尔值

    (默认值 =false) - 决定重新启动时是否遵循延迟(如果有的话)。

  • suppressEvents:布尔值

    (默认值 =true) - 如果true(默认),当播放头移动到由time参数。

返回值:self

self(便于链式调用)

细节

重新启动并从开头开始向前播放。

//restarts, not including any delay that was defined
tl.restart();

//restarts, including any delay, and doesn't suppress events during the initial move back to time:0
tl.restart(true, false);
无噪 Logo
无噪文档
中文文档 · 复刻官网
查看所有 ↗