In Java you can use a for
loop to traverse objects in an array as follows:(在Java中,可以使用for
循环遍历数组中的对象,如下所示:)
String[] myStringArray = {"Hello", "World"};
for (String s : myStringArray)
{
// Do something
}
Can you do the same in JavaScript?(您可以在JavaScript中做同样的事情吗?)
ask by Mark Szymanski translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…