1、利用es6扩展运算符: function insert(arr, item, index) { let newArr = [...arr]; newArr.splice(index, 0, item); return newArr; } 2、利用slice返回新数组的特性: function insert(arr, item, in...