首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >小程序报错this.setDate is not a function?

小程序报错this.setDate is not a function?

提问于 2018-03-19 04:58:53
回答 1关注 0查看 682

小程序报错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});

  }

})

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档