数组splice方法 hello彩月YES 2021-07-28 1,470 阅读1分钟 使用Array.prototype.splice.apply合并数组 如上图所示,将arr数组本身(根据[2,0]当中的0得到,删掉零个元素,即加数组的功能)加到this.searchData数组且作为this.searchData数组下标为2的位置。