var str = ["first", "second", "third"];/* 循环获取 */for(var x in str){ alert(x+":"+str[x]);}