87,907
社区成员
发帖
与我相关
我的任务
分享
var tmpcityArray = cityArray[i][1].split("|");
for(j=0;j<tmpcityArray.length;j++)
{
document.all.selCity.options[document.all.selCity.length] = new Option(tmpcityArray[j].split(":")[1],tmpcityArray[j].split(":")[0]);
if(tmpcityArray[j].split(":")[0].indexOf("AAAA") == 0){
//selected
}
if(tmpcityArray[j].split(":")[1] == undefined){
document.getElementById('selCity').style.display = "none";
}
}
if(tmpcityArray[j].split(":")[0].indexOf("AAAA") == 0){
//我想在这里遍历的 option selected
}