您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789
  1. /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
  2. let promise
  3. module.exports = typeof queueMicrotask === 'function'
  4. ? queueMicrotask.bind(typeof window !== 'undefined' ? window : global)
  5. // reuse resolved promise, and allocate it lazily
  6. : cb => (promise || (promise = Promise.resolve()))
  7. .then(cb)
  8. .catch(err => setTimeout(() => { throw err }, 0))