小程序报错this.setDate is not a function是什么原因?
var app = getApp()
Page({
data:{
motto: 'Hello World',
num1:"1",
num2:"2"
},
onLoad:function(options){
},
onReady:function(){
},
onShow:function(){
// 生命周期函数--监听页面显示
},
onHide:function(){
},
onUnload:function(){
},
abc:function(e){
console.log(e.target.id);
this.setDate({motto:e.target.id});
}
})
相似问题