收藏
回答

promise.all没有回调

框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
小游戏 Bug iOS 12.1.3 IOS7 7.0

- 当前 Bug 的表现(可附上截图)

在开发工具上有回调,在客户端没有回调

- 预期表现

在开发工具上有回调,在客户端没有回调

- 复现路径

- 提供一个最简复现 Demo

let asyncFunc = async function(id) {
    return wx.getStorageSync(id);
}
 
Promise.all([
    asyncFunc("board1"),
    asyncFunc("boardprofile1")
]).then(res => {
    console.log("test:%o", res);
}).catch(res => {
    console.log("error:%o", res);
})



回答关注问题邀请回答
收藏

1 个回答

  • Danko。
    Danko。
    2019-01-30

    请求是否浏览器自带的promise

    2019-01-30
    有用
    回复
登录 后发表内容