

传参代码:记住云函数要部署
wx.cloud.callFunction({
name: "update",
data:{
id:options_id,
price:20}
}).then(res => {
console.log(res, "res")
}).catch(err => {
console.log(err, "err")
})
wx.cloud.callFunction({
name: "update",
data:{
id:options_id,
price:20}
}).then(res => {
console.log(res, "res")
}).catch(err => {
console.log(err, "err")
})
本文标题:28.利用云函数传递参数和修改数据
本文链接:https://www.haomeiwen.com/subject/tbufpltx.html
网友评论