数组的增删改查相关方法

1、数组的创建方法

  

2、数组的转换方法:toString  toLocaleString  valueOf

  

3、增删:push() pop() shift()  unshilt()  concat()  join()

     

    

     

     

 4、splice()与slice()

  

 5、查找:indexof() 与lastIndexof()

  

 6、排序:sort

  

7、数组去重:

  1)

    

   2)

    

   3)

    

   4)ES6常用

    

   5)

    

猜你喜欢

转载自www.cnblogs.com/qqinhappyhappy/p/11614350.html