📅  最后修改于: 2022-03-11 14:59:01.757000             🧑  作者: Mango
var colors = ["red", "orange", "yellow", "green"];
colors = colors.splice(3, 1); // Starts removing from the third element, and deletes 1 element
// Array.splice(startingElement, elementYouWantToRemove);