Delete an element specified in the array First, you can define a function for the array object of JS to find the position of the specified element in the array, that is, the index. The code is: Array.prototype.indexOf = function(val) { for (var i = 0; i < this.lengt..., Jiuyun Blog