es6 连接数组
emer 发布于 2017-7-20 16:12 2366 次阅读
const a=1; const b=[2,3]; c=[a,...b]; [e,...f]=[1,2,3,4]; console.log(c); console.log(e); console.log(f);
emer 发布于 2017-7-20 16:12 2366 次阅读
const a=1; const b=[2,3]; c=[a,...b]; [e,...f]=[1,2,3,4]; console.log(c); console.log(e); console.log(f);