使用Promise 对setTimeout 进行封装,从而支持链式的调用。 const delay = (func, millisec, options) => { let timer = 0 let reject = null const promise = new ...
確定! 回上一頁