565 手写promise源码
摘要:
// 考虑到兼容性问题,不使用ES6+ ; (function () { // 构造函数constructor function MyPromise(executor) { // 参数合法校验 if (typeof executor !== "function") { throw new TypeE 阅读全文
posted @ 2020-10-26 12:09 冲啊! 阅读(153) 评论(0) 推荐(0)
posted @ 2020-10-26 12:09 冲啊! 阅读(153) 评论(0) 推荐(0)