请帮帮我,实在想不通。。。
//使用了AJAX技术,无论xmlHttp.responseText得到的是NUSERCD还是什么其他的值,
//一律弹出对话框“成功”(alert("成功");),使用===也不行
我真的晕了,请好心的朋友帮帮我,不胜感激~~~
function handleStateChange() {
if(xmlHttp.readyState == 4) {
if(xmlHttp.status == 200) {
alert(xmlHttp.responseText);
if(xmlHttp.responseText=="NUSERCD")
alert("错误一!");
else if(xmlHttp.responseText=="NSYSTCD")
alert("错误二!");
else if(xmlHttp.responseText=="NTEXIST")
alert("错误三");
else
{
alert("成功");
}
}
}
}