微信小程序改变data里的值

Page({
  data: {
    inputValue: ''
  },
  bindKeyInput: function (e) {
    this.setData({
      inputValue: e.detail.value   //用this.dada.inputValue=e.detail.value改变不了data的值
    })
  },
  })
posted @ 2021-01-30 16:57  倔强的烤马铃薯  阅读(10)  评论(0)    收藏  举报  来源