标签: javascript node.js
为什么我收到错误消息:等待仅在异步函数中有效
const sleep = async ((ms) => { new Promise(res => setTimeout(res, ms)) }) const test1 = async (() => { await sleep(1000) }) await test1()
谢谢!