ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
将获得的数组集合 中的每一项都展开 ~~~ <script> function go(x,y,z){ console.log(x+y+z); } var arr = [1,2,3]; // go(arr[0],arr[1],arr[2]); go(...arr); console.log(...arr); </script> ~~~ ~~~ <script> // var arr = [1,2,3]; // var b = [...arr,..."hello"]; // console.log(b); var obj = { name:"cheng", age:19 } var wang = {...obj}; console.log(wang); </script> ~~~