1.结构赋值 { let a,b,c; [a,b] = [1,2]; console.log(a,b); //1,2} { let a,b,rest; [a,b,...rest] = [1,2,3,4,5,6]; console.log(a,b,rest); //3,[4,5,6]} 2.对象结构赋值 { let a,b; ({a,b} = {a:1,b:2}); console.log(a,b); //1,2} 3.默认值 { let a,b,c,rest; [a,b,c=3] = [1,2]…