愿时光能缓,愿故人不散!
const mySetTimeOut = (fn, time, ...args) => { const timer = setInterval(() => { clearInterval(timer); fn.apply(this, args); }, time); };
promise实现 实现一个const