ES6 将数组第一项移到最后一项

// es6语法,将数组第一项移到最后一项
const [first, ...rest] = this.linshi;
this.linshi = [...rest, first]

posted @ 2020-10-27 14:49  九鹤  阅读(1550)  评论(0)    收藏  举报