微信开发工具基础库2.17.0版本不支持async 如下写法?
发布于 5 年前 作者 juanma 3694 次浏览 来自 问答
          (async () => {
              const p = await app.sdk.init();
              console.log("==========",p);
          })();  

在2.17.0的版本中这样的写法会报如下错误 Cannot read property ‘mark’ of undefined

如果将将基础库版本调整到2.12.3版本就可以得到支持。 难度是2.17.0不支持 async 和 await 异步方式吗?

回到顶部