function defer(time){ return new Promise((resolve, reject)=>{ setTimeout(resolve, time); }) } defer(3000).then(()=>console.log(1));

相关推荐

牛客网
牛客企业服务