06 2021 档案
摘要:<script> function sum(a,b,c,d,e){ return a+b+c+d+e } const currying = (fn,arg = [])=>(...args)=>( fn.length args.concat(arg).length?fn(...args.concat(
阅读全文
摘要:let timer = null function interval(func,wait){ let interv = function(){ func.call(null) timer = setTimeout(interv,wait) } timer = setTimeout(interv,wa
阅读全文
摘要:1实现异步调用 const PENDDING = 'pendding', RESOLVED = 'resolved', REJECTED = 'rejected' class myPromise { constructor(handler){ this.status = PENDDING this.
阅读全文