会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
lllomh
博客园
首页
博问
闪存
新随笔
订阅
管理
2023年3月14日
node 使用 async/await 取值问题
摘要: node 中的异步同步取值有时候要用到 async 的用法 async function test() { let data = await new Promise((resolve,reject)=>{ resolve('121211212112121') }) return data } asy
阅读全文
posted @ 2023-03-14 14:07 lllomh
阅读(25)
评论(0)
推荐(0)
编辑