摘要:        
const ids = [1, 2, 3] const resArr = [] // 1 ids.forEach(id => api(id).then(res => resArr.push(res)) // 2 Promise.all(ids.map(id => api(id).then(res =    阅读全文
posted @ 2021-04-01 16:52
FE-神鸟
阅读(200)
评论(0)
推荐(0)
        
            
        
        
摘要:        
function add(x) { var sum = x; var tmp = function (y) { sum = sum + y; return tmp; }; tmp.toString = function () { return sum; }; return tmp; } consol    阅读全文
posted @ 2021-04-01 16:29
FE-神鸟
阅读(43)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号