请问老师:setData方法失效 是什么原因??

来源:10-9 组件间通信

研究猿

2020-04-06

图片描述

写回答

1回答

木榆

2020-04-20

    onPlay: function (event) {
      if (!this.data.playing) {
        this.setData({
          playing: true
          // 把你的this.data.playing改成playing
        })
        mMgr.src = this.properties.src
        mMgr.title = '123'
      } else {
        this.setData({
          playing: false
        })
        mMgr.pause()
      }
    },


0
0

纯正商业级微信小程序应用实战,全方位小程序特性讲解

真实数据的高质量小程序项目,学会直接工作

4782 学习 · 2125 问题

查看课程