输入banner图图片脚本导航/分类

通过action传过来的值在option获取进行验证的方法_javascript技巧

通过action传过来的值在option获取进行验证的方法:
代码如下:

for(var i=0;iif(document.getElementById("ufacilityType").options[i].text==datas[0].facilityType){
document.getElementById("ufacilityType").options[i].selected=true;
break;
}
}