fe_interview
fe_interview copied to clipboard
实现一个 sleep 函数
async function sleep(time = 0) {
return await new Promise(function(resolve) {
setTimeout(resolve, time)
})
}