作用:如果不知道形参有多少个,可以...
function san(a,b,c,d){ return a+b * c-d } function curry(func,...aaa){ return function(...bbb){ return func(...aaa,...bbb) } } // const newSan = curry(san,1,2) console.log(newSan(3,4))//3 console.log(newSan(4,5))//4 标签:function,...,return,san,newSan,运算符,展开 From: https://www.cnblogs.com/wsx123/p/17375958.html