请问这个为什么提示信息还是显示innHTML参数错误,信息不全
document.getElementById("save").onclick=function(){
var xml=new XMLHttpRequest();
xml.open("POST","service.php");
var data="staffName:"+document.getElementById("staffName").value+
"&Number:"+document.getElementById("staffNumber").value+
"&Sex:"+document.getElementById("staffSex").value+
"&Job:"+document.getElementById("staffJob").value;
xml.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xml.send(data);
xml.onreadystatechange=function(){
if(xml.readyState===4){
if(xml.status===200){
document.getElementById("createResult").innerHTML=xml.responseText;
}
else{
alert("参数错误"+xml.status);
}
}
}
}