欢迎光临
我们一直在努力

九八云百度小程序教程:clearInterval

  • clearInterval
    • 方法参数
    • 示例
      • 图片示例
      • 代码示例

    clearInterval

    解释:取消由 setInterval 设置的定时器。

    方法参数

    Number intervalID
    intervalID参数说明 :要取消的定时器的 ID。

    示例

    跳转编辑工具

    在开发者工具中打开

    在 WEB IDE 中打开

    扫码体验

    代码示例

    请使用百度APP扫码

    图片示例

    代码示例

    • SWAN
    • JS
    
     
    1. <view class="wrap">
    2. <view class="card-area">
    3. <view class="top-description border-bottom">
    4. <view>Interval</view>
    5. <view>{{Interval}}</view>
    6. </view>
    7. <button type="primary" bindtap="bindSetInterval">setInterval</button>
    8. <button type="primary" bindtap="bindClearInterval">clearInterval</button>
    9. </view>
    10. <view class="card-area">
    11. <view class="top-description border-bottom">
    12. <view>timeout</view>
    13. <view>{{timeout}}</view>
    14. </view>
    15. <button type="primary" bindtap="bindSetTimeout">setTimeout</button>
    16. <button type="primary" bindtap="bindClearTimeout">clearTimeout</button>
    17. </view>
    18. </view>

    赞(0) 打赏
    未经允许不得转载:九八云安全 » 九八云百度小程序教程:clearInterval

    评论 抢沙发