function sleep(ms){ var temple=new Promise( (resolve)=>{ console.log(111);setTimeout(resolve,ms)}); return temple}sleep(5000).then(function(){ console.log(222)})
posted on 2018-04-27 09:51 小羊瑞恩 阅读(970) 评论(0) 编辑 收藏 举报