let [a,b,c] = [1,2,3];
let [d,e,...f] = [1,2,3,4,5,6,7,8,9];
[,a,] = [1,2,3];
[b,a] = [a,b];
({id,name} = {id:40,name:'nihao'})
let sum = ([a,b])=>a+b;console.log(sum[1,2]);
let getName = ({name,email})=>[name,eamil];console.log(getName({name:'nihao',email:'a@a.com'}));
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号