以上的输出是???
1 2 4 3 原因在于: new Promise()为构造函数,是同步执行 .then() 为异步执行
使用Promise的原因:解决回调地狱的问题。
回调地狱
三种状态:Pending && fulfiled && rejected (三种状态是不可逆的)