2020年2月21日

310 低版本 IE 浏览器的缓存问题

摘要: 08.Ajax缓存.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <button id="btn">发送Ajax请求</button 阅读全文

posted @ 2020-02-21 22:52 冲啊! 阅读(175) 评论(0) 推荐(0) 编辑

309 Ajax 错误处理:非200,404,500,网络中断

摘要: 07.Ajax错误处理.html 阅读全文

posted @ 2020-02-21 22:04 冲啊! 阅读(414) 评论(0) 推荐(0) 编辑

308 Ajax状态码,获取服务器端的响应的另一种方式onreadystatechange ,与onload的区别

摘要: xhr.readyState 为4, 只能说明接收完了服务器端的响应数据,但是服务器端可能响应了一个错误的数据,所以继续判断,http状态码xhr.status是200,才能说明此次请求是成功的 if (xhr.readyState 4 && xhr.status 200) { alert(xhr. 阅读全文

posted @ 2020-02-21 20:50 冲啊! 阅读(375) 评论(0) 推荐(0) 编辑

307 Ajax请求参数格式:json, x-www-form-urlencoded

摘要: 补充: (1)get请求的请求参数,以查询字符串的方式拼接在url后面; (2)传统的表单提交,表单数据以查询字符串的方式传递给send()方法。 05.向服务器端传递JSON格式的请求参数.html <!DOCTYPE html> <html lang="en"> <head> <meta cha 阅读全文

posted @ 2020-02-21 20:13 冲啊! 阅读(1061) 评论(0) 推荐(0) 编辑

306 Ajax请求参数传递

摘要: 03.传递get请求参数.html 04.传递post请求参数.html 阅读全文

posted @ 2020-02-21 17:57 冲啊! 阅读(237) 评论(0) 推荐(0) 编辑

305 Ajax服务器端响应的数据格式

摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <script type="text/javascript"> // 1.创建ajax对象 va 阅读全文

posted @ 2020-02-21 15:28 冲啊! 阅读(237) 评论(0) 推荐(0) 编辑

304 Ajax 运行原理及实现

摘要: 01.Ajax入门.html app.js 阅读全文

posted @ 2020-02-21 15:22 冲啊! 阅读(134) 评论(0) 推荐(0) 编辑

303 Ajax 基础

摘要: ![](https://img2018.cnblogs.com/blog/1877004/202002/1877004-20200221104722360-1609696712.png) ![](https://img2018.cnblogs.com/blog/1877004/202002/1877004-20200221104813792-1386245607.png) ![](https:// 阅读全文

posted @ 2020-02-21 10:50 冲啊! 阅读(127) 评论(0) 推荐(0) 编辑

导航