seven

Results 6 comments of seven

刚好这有一篇文章解答了今天面试题https://www.jianshu.com/p/5d44186b5263

回调里面如何用await? function a(){ $.get(url,data,function(data){ return data; },'json'); } // 用法: async function(){ var a = await a(); // 这样子调用有没有错? }

这样吧,你自己重新写一个吧,或者去抠源码改一下样式,js逻辑不变就行了

不知道说啥

yes I have this problem too. My computer also is win10

最后的 async transform(this: PluginContext, code: string, id: string) 不能这么写吧?相当于给transform方法加了个参数this