//数组方法:slice,splice,concat,reverse,sort,includes
//迭代方法:filter,forEach,map,every,some
//pop,push,shift,untshift.etc...
//someFunction(data.concat());
//上面方法如此调用原因:当不传递任何参数调用某个数组的 concat() 方法时,将返回和原来数组中项目一样的数组。这样你就可以保证原数组不会被该函数更改,项目开发中非常有用!
//栈(LIFO后进先出-弹夹-push-pop),队列(FIFO先进先出-排队打饭-push-shift);



网友评论