//2017/7/14 //变量的解构赋值(解构:Destructuring) //(1)数组的解构赋值 let [a,b,c]=[1,2,3];//模式匹配,只要等号两边的模式相同,左边的变量就会被赋予对应的值. //eg: let [foo,[[bar],baz]]=[1,[[2],3]]; console.log(foo); console.log(bar); console.log(baz); let[,,third]=['foo','bar','baz']; console.log(t…