分享ES6的7个实用技巧 Hack#1交换元素利用数组解构来实现值的互换leta='world',b='hello'[a,b]=[b,a]console.log(a)//->hellocons 实用技巧