收藏
回答

使用mpvue开发小程序

 that.setData({

     textLog: log

   });

可以这样进行赋值吗

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

2 个回答

  • 禾店短剧系统
    禾店短剧系统
    2021-05-26

    来学习

    2021-05-26
    有用 1
    回复
  • ?.
    ?.
    2018-12-19

    this.textLog = log

    就可以了

    2018-12-19
    有用
    回复 9
    • 续写未来 de 狼
      续写未来 de 狼
      2018-12-19

      在小程序方法中取不到值  这样写没用  为空


      2018-12-19
      回复
    • ?.
      ?.
      2018-12-19回复续写未来 de 狼

      mpvue开发小程序和vue基本是一样的,你这个看不出来什么

      2018-12-19
      回复
    • 续写未来 de 狼
      续写未来 de 狼
      2018-12-20回复?.


      在wx.openBluetoothAdapter中this.textLog取不到值  在方法外就可以取到值  不知道什么原因

      2018-12-20
      回复
    • ?.
      ?.
      2018-12-20回复续写未来 de 狼

      你看下你的this指向。。。

      2018-12-20
      回复
    • 续写未来 de 狼
      续写未来 de 狼
      2018-12-20回复?.

      什么意思

      2018-12-20
      回复
    查看更多(4)
登录 后发表内容