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)提交
  • Genymotion shell 的用法
  • Motrix怎么设置外观颜色
  • 光学瞄准镜的选购要点
  • 时空召唤中琪琳的的详细资料在哪找?
  • 热门搜索
    奶昔减肥 荷叶能减肥吗 光之子攻略 嘴巴里面起泡怎么办 小小盗贼攻略 火炬之光2攻略 宫缩是怎么回事 网速太慢怎么提网速 长沙医学院怎么样 战魂铭人攻略