如題:console.log一直輸出undefined,但輸出e.detail.value又是對的,剛學小程式開發,想不明白 按網上說的 改成 var that = this 也沒用
data: {
items: [
{ name: 'wx-auto', value: '記住密碼,下次自動登錄' },
],
strKHKey:"",
strwxtel:"",
boolwxtelEnabled:false,
strpw:"",
boolpwEnabled:false,
boolAuto:true
},
KHKeyInput:function(e){
this.setData({
strKHKey:e.detail.value
})
console.log("strKHKey:"+this.strKHKey)
},
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/242570.html
標籤:微信開發
上一篇:Qt如何修改QPixmap的顏色
