提示错误:thirdScriptError?
发布于 6 年前 作者 xiuying57 13394 次浏览 来自 官方Issues

VM63:1 thirdScriptError

获取成功 is not defined;at api cloud.callFunction success callback function

ReferenceError: 获取成功 is not defined

    at Function.success (http://127.0.0.1:64691/appservice/pages/index/index.js:13:21)

    at Function.<anonymous> (WAService.js:1:102993)

    at WAService.js:1:163368

    at a (WAService.js:1:163099)

    at WAService.js:1:163346

    at WAService.js:1:270221

    at u (WAService.js:1:270225)

    at WAService.js:1:283417

总是出现这种错误,哪位大神能帮帮忙!

2 回复

打开index.js文件看 “获取成功”是否没有注释掉

Page({

//第一个云函数

qiuhe(){

wx.cloud.callFunction({

name:“add”,

data:{

a:1,

b:3

},

success(res){

console.log(获取成功, res)

},

fail(res) {

console.log(请求失败, res)

}

})

}

})

index.js是这样的,应该怎样注册掉?

回到顶部