我的脚本代码有问题,这部分代码造成所有脚本都不执行的错误!
function SelectCheck()
{
var nurseInfoSearch =document.getElementById( "ctl00_ContentPlaceHolder1_NurseInfoSearchDropDownList ");
switch(nurseInfoSearch.value)
{
case "All ";
return true;
break;
case "Nurse_ID ";
return Nurse_IDCheck();
break;
case "Nurse_Name ";
return Nurse_NameCheck();
break;
case "Age ";
return AgeCheck();
break;
case "ManagerName ";
return ManagerNameCheck();
break;
}
}
------解决方案--------------------case "xxxx " :
最后是冒号.