美文网首页
25.利用云函数获取openid

25.利用云函数获取openid

作者: 陈情令 | 来源:发表于2021-08-27 16:01 被阅读0次

代码:

onLoad: function (options) {

    wx.cloud.callFunction({

      name: "getDate"

    }).then(res => {

      console.log(res, "res")

    }).catch(err => {

      console.log(err, "err")

    })

  },

相关文章

网友评论

      本文标题:25.利用云函数获取openid

      本文链接:https://www.haomeiwen.com/subject/yejfpltx.html