通過action傳過來的值在option獲取進行驗證的方法:
復制代碼 代碼如下:
for(var i=0;i<document.getElementById("ufacilityType").options.length;i++){
if(document.getElementById("ufacilityType").options[i].text==datas[0].facilityType){
document.getElementById("ufacilityType").options[i].selected=true;
break;
}
}
新聞熱點
疑難解答
圖片精選