InnerAudioContext.offTimeUpdate

解释:取消监听 onTimeUpdate 事件。

方法参数

Function callback

示例

跳转编辑工具

在开发者工具中打开

在 WEB IDE 中打开

扫码体验

代码示例

百度智能小程序

请使用百度APP扫码

图片示例

InnerAudioContext.offTimeUpdate - 图2

代码示例

  • SWAN
  • JS
  1. <view class="wrap">
  2. <view class="card-area">
  3. <view class="description">
  4. 正在播放《演员》
  5. </view>
  6. <view class="description">
  7. {{currentTime}} / {{duration}}
  8. </view>
  9. </view>
  10. <button type="primary" bindtap="offTimeUpdate">点击取消监听</button>
  11. </view>