原帖由 lonely5159 于 2009-10-26 10:35 PM 发表
function pageLoad()
{
$("#<%=txt_UserId.ClientID %>").change
(
function()
{
alertRegUserIDMsg = "";
$.ajax
({
type: "Post",
url: "../Ajax/RegAjaxValidation.aspx",
data: "Action= ValidReg®UserID=" + $("#<%=txt_UserId.ClientID %>").val(),
complete: function(result)
{
if (result.responseText == "False")
{
alert("False");
alertRegUserIDMsg += "<imgsrc='../Icon/Warning.gif' style='width: 40px;height:40px'align='absmiddle' /> <b>These name has beenuse!</b><br/>";
validRegUserID = false;
}
else (result.responseText == "True")
{
alert("True");
validRegUserID = true;
}
},
dataType: "html"
});
}
)
}
我用alert来尝试有没有跑程序。。。
然后发现。。。
为什么进了if的false ...然后又进 else的true...??
欢迎光临 JBTALKS.CC (https://jbtalks.my/) | Powered by Discuz! X2.5 |