js基础

数组:

  末尾添加push()、末尾移除pop()、开头添加unshift()、开头移除shift();

  数组倒序reverse()、数组排序sort(fn)、数组合并concat()、转字符串join()、toString();

  截取数组[1,3)---slice(1,3)、替换删除splice(1,0,'a');

  判断元素下标indexOf()、条件查询find(fn)、过滤filter()、遍利map()、

  

posted @ 2018-10-31 11:46  大望叫我来巡山  阅读(89)  评论(0)    收藏  举报