在servlet中硬编码ajax 的是需要注意 1 如果用
Get方法和普通的ajax一样的写法 open send 就够了
Get方法
2
xmlHttpRequest.open("POST","login.jsp",true);
xmlHttpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");
xmlHttpRequest.send("user="+username+"&pwd="+password);