switch(xmlRequest.status) 总是“未指定错误”
zsrui 2008-08-30 11:52:04 下面代码第三行总是提示“未指定的错误”,但不影响运行效果,401能页面转向,default也能正常运行。
不知道什么原因,请前辈指点下,多谢!!
1:xmlRequest.open("https://jl.mail.cnc.cn/exchange","get","zangsr1","Ilove@");
2: xmlRequest.send();
3: switch(xmlRequest.status)
{
case 401:
window.location.href = "email_reg.asp";
break;
default:
window.location.href = "email_reg.asp";
break;
}
}
</script>