因为 promise.then 必须是微任务,但是浏览器又没有除了 then 的微任务了。 function nextTick(fn) { if (process !== undefined && typeof process.nextTick === "function") { let counter = 1; let observe = new MutationObserver(fn); let node = document.createTextNode(String(counter...