摘要: export const ERROR_PROMISE_TIMEOUT = 'ERROR_PROMISE_TIMEOUT'; export default function (promise, timeout) { let timer = undefined; return Promise.race([ new Promise(function (resolve, reject)... 阅读全文
posted @ 2018-11-19 16:15 麦君 阅读(994) 评论(0) 推荐(0) 编辑