皮蛋啦啦

导航

2018年9月10日 #

发送ajax步骤

摘要: 1、创建异步对象 一般命名为xhr var xhr = new XMLHttpRequest(); 2、 设置请求行 open(请求方式,请求url) 1.get 需要在url后面拼接参数(如果有参数) 2.post请求不需要拼接参数 xhr.open("post","validate.php"); 阅读全文

posted @ 2018-09-10 20:41 皮蛋啦啦 阅读(233) 评论(0) 推荐(0)