上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 31 下一页
摘要: <script> var xhr = new XMLHttpRequest(); xhr.open('GET', 'xml.php'); xhr.send(); xhr.onreadystatechange = function () { if (this.readyState !== 4) ret 阅读全文
posted @ 2019-01-19 11:55 lujieting0 阅读(1089) 评论(0) 推荐(0) 编辑
摘要: <script> // console.time('abc') // for (var i = 0; i < 100000000; i++) {} // console.timeEnd('abc') // console.log('begin request') var xhrAsync = new 阅读全文
posted @ 2019-01-19 11:53 lujieting0 阅读(375) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>AJAX发送GET请求并传递参数</title></head><body><ul id="list"></ul><script> var listElement = 阅读全文
posted @ 2019-01-19 11:52 lujieting0 阅读(216) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>AJAX发送POST请求</title> <style> #loading { display: none; position: fixed; top: 0; le 阅读全文
posted @ 2019-01-19 11:52 lujieting0 阅读(252) 评论(0) 推荐(0) 编辑
摘要: <script> var xhr=new XMLHttpRequest(); xhr.open('POST','/add.http');//设置请求行 xhr.setRequestHeader('Foo','Bar');//设置请求头 //设置的请求体的格式内容(urlencoded),根据请求头 阅读全文
posted @ 2019-01-19 11:51 lujieting0 阅读(323) 评论(0) 推荐(0) 编辑
摘要: < !DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><body><!--XMLHttpRequest 兼容方案--><!--var xhr=window.XMLHttpReq 阅读全文
posted @ 2019-01-19 11:50 lujieting0 阅读(172) 评论(0) 推荐(0) 编辑
摘要: <style> * { margin: 0; padding: 0; } .layout{ width: 500px; height: 600px; border: 1px solid red; margin: 50px auto; /*设置父容器为伸缩盒子*/ display: flex; /*默 阅读全文
posted @ 2019-01-06 22:28 lujieting0 阅读(195) 评论(0) 推荐(0) 编辑
摘要: <style> *{ margin: 0; padding: 0; } div{ width: 500px; height: 300px; border: 1px solid red; margin: 100px auto; } div>ul{ list-style: none; width: 10 阅读全文
posted @ 2019-01-06 22:27 lujieting0 阅读(109) 评论(0) 推荐(0) 编辑
摘要: <style> *{ padding: 0; margin: 0; } .box{ width: 900px; height: 600px; border: 1px solid red; margin:0 auto; /*设置父容器为盒子:会使每一个子元素自动变成伸缩项 当子元素的宽度和大于父容器宽 阅读全文
posted @ 2019-01-06 22:26 lujieting0 阅读(566) 评论(0) 推荐(0) 编辑
摘要: <style> *{ padding: 0; margin: 0; } .box{ width: 900px; height: 600px; border: 1px solid red; box-sizing: border-box; margin:0 auto; /*设置父容器为盒子:会使每一个子 阅读全文
posted @ 2019-01-06 22:25 lujieting0 阅读(171) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 31 下一页