📜  如何在javascript代码示例中查找数组中值的索引

📅  最后修改于: 2022-03-11 15:03:18.587000             🧑  作者: Mango

代码示例1
var list = ["apple","banana","orange"]

var index_of_apple = list.indexOf("apple") // 0