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")
})
},
代码:
onLoad: function (options) {
wx.cloud.callFunction({
name: "getDate"
}).then(res => {
console.log(res, "res")
}).catch(err => {
console.log(err, "err")
})
},