Ajax局部刷新的步骤(post)提交

2025-05-14 03:20:19

1、获取XMLHttpRequest对象,function checkName(){var xhr=null;if(window.XMLHttpRequest){xhr=new XMLHttpRequest();}else{xhr=new ActiveXObject("Microsoft.XMLHttp");}return xhr;}

Ajax局部刷新的步骤(post)提交

3、xhr.onreadystatechange=function(){if(xhr.readyState==4){var text=xhr.responseText;$("s").innerHTML=text;}}xhr.send("name="+name);

Ajax局部刷新的步骤(post)提交

5、<span></span><span id="s"></span><稆糨孝汶;br/>密码:<input type="password" name="psw"><br/><input type="button" name="submit" value="注册"></fieldset></form></body>

Ajax局部刷新的步骤(post)提交
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢