网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容 知识问答

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

时间:2024-10-13 20:19:11

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)提交
© 2025 智德知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com