Find the index of the array element you want to remove using indexOf , and then remove that index with splice . The splice() method changes the contents of ... ... <看更多>
Deleting elements using JavaScript Array's splice() method ... The position specifies the position of the first item to delete and the num argument determines the ... ... <看更多>
index : The array index to remove the item from. The index must be in bounds or it will throw an error. callback : A callback to be invoked for each item ... ... <看更多>