摘要: async和await是解决异步编程问题的。 promise的then方法链式调用不够优雅 async 修饰的函数同步返回一个promise 使用await必须包裹一个async修饰的函数 async返回的promise的状态由await修饰的promise的状态决定 如果await修饰的promi 阅读全文
posted @ 2021-05-18 16:13 丁同亚的博客 阅读(65) 评论(0) 推荐(0) 编辑