for(var i=0; i<document.getElementById("empCTypeSelect0").options.length; i++) {
var value = document.getElementById("empCTypeSelect0").options[i].text;
if(value == item.empCType) {
document.getElementById("empCTypeSelect0").selectedIndex = document.getElementById("empCTypeSelect0").options[i].index;
}
}
或者
if("正常" == item.status) {
document.getElementById("statusid").selectedIndex = 0;
} else if("暂停" == item.status) {
document.getElementById("statusid").selectedIndex = 1;
} else if("取消" == item.status) {
document.getElementById("statusid").selectedIndex = 2;
}