文章 评论 浏览 31
Promise.retry = function (getPromise, num) { if (num === 1) return getPromise() return getPromise().then(res => res, () => Promise.retry(getPromise, --num)) }
https://www.cnblogs.com/yuliangbin/p/9348156.html
文章 0 评论 0
接受
第 2 题:['1', '2', '3'].map(parseInt) what & why ?