Spread运算符将允许您将数组拆分为单个参数。这些参数是那些,它们是单独参数的功能。
function myfunction(...iterableObj);
<html> <body> <script> var a, b, c, d, e, f, g; a = [10,20]; b = "rank"; c = [30, "points"]; d = "run" //concat方法。 e = a.concat(b, c, d); //点差运算符 f = [...a, b, ...c, d]; document.write(e); document.write("<br>"+f); </script> </body> </html>