摘要: 先执行test1(),再执行test2: function test1() { return new Promise(resolve => { setTimeout(() => resolve("test1"), 2000); }); } function test2() { console.log 阅读全文
posted @ 2022-05-31 17:19 船长博客 阅读(1605) 评论(0) 推荐(0) 编辑
永远相信美好的事情即将发生!