bsp; else//好像有点多余,不过这样比较保险
return false;
}
else
{
bt.value="正在提交";
bt.disabled=true;
document.getElementById("userchksense").value="nonsense";
document.form1.submit();
}
}
}
var title=document.getElementById("usertitle").value;
var tag=document.getElementById("usertag").value;
var intro=document.getElementById("userintro").value;
var content=document.getElementById("usercontent").value;
var v = "title="+title+"&tag="+tag+"&intro="+intro+"&content="+content;
xHRObject.open("POST","../ajax/ajax.php",true);
xHRObject.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xHRObject.onreadystatechange=get2;//此处的get2不能打括号,否则是将函数的返回值赋值给一个变量,而不是将本函数本身赋值给xHRObject.onreadystatechange(注释1)
xHRObject.send(v);
}
}