手写算法题 手写promise 写法来源:coderwhy 参考资料:Promise规范 方法包含: Promise类设计 构造函数的规划 then方法的实现 catch方法 finally resolve/reject all/allSettled race/any 手写typeof 写法来源:bilibili