1. var set = new Set([1, 2, 3, 4, 4,4,4,4,2,2,2]) set=[...set] 2. let [head, ...tail] = [1, 2, 3, 4]; 3. let [x, y, ...z] = ['a']; 第一个叫做 展开运算符(spread operator),作用是和字面意思一样,就是把东西展开.可以用在array和object上都行.比如: let a = [,,]; let b = [, ...a, ]; // [0,1,2,3,4