![d68bf0c471f28208c4f2dde99a98a81e.png](https://i-blog.csdnimg.cn/blog_migrate/128177699547127bb4520b9c57d921dd.jpeg)
[1,2,3,4] =>1,2,3,4 toString()
[1,2,3,4] =>1,2,3,4 join()
1234 => [1,2,3,4] String(a).split('')
[1,2,3,4] =>1234 join('')
1,2,3,4 => [1,2,3,4] split(',')
abcde =>abc slice(0,3)
abcde =>abMde replace(c,M)
[1,2,3,4] =>1-2-3-4 join('-')
[1,2,3,4] =>[1,2,3] pop()
[1,2,3] => [1,2,3,4] push()
[1,2,3,4] => [2,3,4] shift()
[2,3,4] => [1,2,3,4] unshift()
[1,2,3,4] => [1,2] slice(0,2)
["1","2"].map(Number) =>[1,2]
[1,2].concat([3,4]) =>[1,2,3,4]
//删除最后一个字符串 this.allId = this.allId.substring(0,this.allId.length - 1); //删除前四个字符串 this.allId = this.allId.slice(4);