手写Promise 实现 then catch方法(新添加resolve,reject,all)
摘要:
class MyPromise { constructor(callback) { if (typeof callback !== 'function') throw new TypeError(`MyPromise resolver ${callback} is not a function`); 阅读全文
posted @ 2022-10-26 16:19
_^_^_nicole
阅读(48)
评论(0)
推荐(0)
浙公网安备 33010602011771号