25.利用云函数获取openid

2021-08-27  本文已影响0人  陈情令

代码:

onLoad: function (options) {

    wx.cloud.callFunction({

      name: "getDate"

    }).then(res => {

      console.log(res, "res")

    }).catch(err => {

      console.log(err, "err")

    })

  },

上一篇 下一篇

猜你喜欢

热点阅读