#微信小程序云函数调用报错:Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 04644435-f243-4f09-80c7-0d980fbb1037, cloud function service error code -504002, error message ReferenceError: wx is not defined。
调用函数:
trans(){
wx.cloud.callFunction({
name:"updatads",
data:{
},
success: function success(res) {
console.log(res);
},
fail: function fail(e) {
console.log(e);
}
})