Array.prototype.splice.apply合并数组用法详解数组对象的splice方法合并数组Array.prototype.splice.apply合并数组
Array.prototype.splice.apply合并数组用法详解数组对象的splice方法合并数组Array.prototype.splice.apply合并数组数组对象的splice方法合并数组var arr1 = ['a', 'b', 'c']; arr1.splice(2, 0, '1');arr1.splice(2, 0, '2')arr1.splice(2, 0, '3')console.log(arr1);运行结果:Array.prototype.splice.app