[code="js"]var url = "?method=doValidateUserExists&name"+ name ;[/code]
这里路径为什么没有要使用的 servlet 的名称 , 是不是被调用这个js 的 文本框所在form的action的value 代劳了呢?
[code="js"]
xmlHttpRequest.onreadystatechange = haolejiaowo ;
xmlHttpRequest.open("post",url, true);
xmlHttpRequest.send(null);[/code]
前面都已经从服务器端获取了数据 这个send() 具体是向哪里发送? 起到什么作用?