How can I retrieve multiple indexes from multiple instances of a string search?
var str = "food";
var index1 = str.search("o"); // 1
var index2 = str.search("o"); // ?
Thanks much,
Wen
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…