数组和字符串转换的方法
toString() 变为字符串 toLocalString() 变为特定语言的字符串 join() 为数组的各个元素之间添加某个字符串然后拼接
数组开头、尾部的操作方法
pop() 去掉尾部 push() 尾部添加
unshift()开头添加 shift()去掉开头
连接方法
concat() 拼接多个数组为一个新数组
高级方法
sort() 排序 forEach() 遍历 find()/findIndex() 返回某个元素满足条件的值、索引
toString() 变为字符串 toLocalString() 变为特定语言的字符串 join() 为数组的各个元素之间添加某个字符串然后拼接
pop() 去掉尾部 push() 尾部添加
unshift()开头添加 shift()去掉开头
concat() 拼接多个数组为一个新数组
sort() 排序 forEach() 遍历 find()/findIndex() 返回某个元素满足条件的值、索引