html52.com
我爱小程序-开发者交流社区

async await 如何捕获 uncaught 报错?

我这样写的代码应该如何捕获 uncaught 错误呢?then 里面要怎么写?
await wx.cloud.callfunction({
  name:xxx,
  data:{}
}).then()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付