// ES5 a = list[0], rest = list.slice(1) // ES6 [a, ...rest] = list 更多专业前端知识,请上 【猿2048】www.mk2048.com