摘要: function a(i) { return new Promise((resolve, reject) => { setTimeout(() => { console.log(i); resolve() }, 5000 - 1000 * i) }) } async function b() { c 阅读全文
posted @ 2020-09-04 10:00 下一页2013 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: <body> <div id="first" style="width: 300px;height: 300px;background-color: #ccc;">1 <div id="second" style="width: 200px;height: 200px;background-colo 阅读全文
posted @ 2020-09-04 09:18 下一页2013 阅读(262) 评论(0) 推荐(0) 编辑