javascript中的神器——Promise
什么是Promise?
啥也不说了直接在控制台上打印出来
> console.dir(Promise)
function Promise()
all:function all()
argument:(...)
call:(...)
length:1
name:"Promise"
☟prototype:Promise
catch:function catch()
constructor:function Promise()
then:function then()
Symbol(Symbol.toStringTag):"Promise"
__proto__:Object