ES6 splice() 数组方法 ES6 sort() 数组方法 ES6 toString() 数组方法 ES6 splice() 数组方法 var arr = ["orange", "mango", "banana", "sugar", "tea"]; var removed = arr.splice(2, 0, "water"); console.log("After adding 1: " + arr ); console.log("removed is: " + removed); removed = arr.splice(3, 1); console.log("After adding 1: " + arr ); console.log("removed is: " + removed); ES6 sort() 数组方法 ES6 toString() 数组方法