1.移除第二个元素this.List.splice(2, 1)2.移除指定元素:const words = ['spray', 'elite', 'exuberant', 'destruction', 'present']; const result = words.filter((word) => word.length > 6); console.log(result);
1.移除第二个元素this.List.splice(2, 1)
2.移除指定元素: