So finden Sie den Index eines Wertes in einem Array in JavaScript
var list = ["apple","banana","orange"]
var index_of_apple = list.indexOf("apple") // 0
Clumsy Crayfish
var list = ["apple","banana","orange"]
var index_of_apple = list.indexOf("apple") // 0