收藏
回答

video标签Show里this.setData修改video组件的initial-time不生效?

var newdate = newDate().getTime()

var olddata = that.data.startButtonTime

var olddatas = olddata.replace(/-/g, '/');

var olddate = newDate(olddatas).getTime()

var time = (newdate - olddate) / 1000

that.setData({

duration: time

})


回答关注问题邀请回答
收藏

1 个回答

  • one for all
    one for all
    2019-12-30

    initial-time加seek一起用

    2019-12-30
    赞同
    回复 1
    • 王东霞
      王东霞
      2019-12-31
      谢谢,已解决
      2019-12-31
      回复
登录 后发表内容
问题标签