rest operator. Node.js. 复制代码. function sum(...nums){; let t =0; for(let n of nums){; t += n; }; return t; }; const total = sum(1,2,3,4,5) ...
確定! 回上一頁