kindring 3 năm trước cách đây
mục cha
commit
2d3e6f23d5
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      js/promise研究/执行顺序.js

+ 8 - 0
js/promise研究/执行顺序.js

@@ -0,0 +1,8 @@
+setTimeout(()=>{
+    console.log(4);
+})
+console.log(1);
+new Promise(()=>{
+    console.log(2);
+})
+console.log(3);