摘要:
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
阅读(9)
评论(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
阅读(18)
评论(0)
推荐(0)

浙公网安备 33010602011771号