摘要: Promise.myAll = function (promises) { let res, rej; const p = new Promise((resolve, reject) => { res = resolve; rej = reject; }); let i = 0; let resul 阅读全文
posted @ 2024-10-18 14:54 Zhentiw 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Function.apply.myCall = function (ctx, ...args) { ctx = ctx null || ctx undefined ? globalThis : Object(ctx); const fn = this; const key = Sybmol("fn" 阅读全文
posted @ 2024-10-18 14:40 Zhentiw 阅读(3) 评论(0) 推荐(0) 编辑