摘要: Result 状态码 Protocol 请求使用协议,如HTTP/HTTPS/FTP等 HOST请求地址的主机名或域名 URL 请求资源的位置 Body请求大小 Caching 请求的缓存过期时间或者缓存控制值 Conten-Type 请求响应的类型 Process 发送此请求的进程 Comment 阅读全文
posted @ 2021-09-02 16:03 junjunzhou 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 200 - OK,服务器成功返回网页 - Standard response for successful HTTP requests. 301 - Moved Permanently(永久跳转),请求的网页已永久跳转到新位置。 - This and all future requests shou 阅读全文
posted @ 2021-09-02 15:43 junjunzhou 阅读(71) 评论(0) 推荐(0) 编辑
摘要: GET和POST的区别: GET请求的含义是请求从服务器获取资源(可以是静态的文本、页面、图片视频等),POST请求的含义是向服务器提交数据,表示向服务器申请创建新的资源或对已有的资源进行修改。 GET请求将请求参数拼接到URL上进行参数传递,而POST则是将请求参包装到HTTP报文的请求体(bod 阅读全文
posted @ 2021-09-02 13:52 junjunzhou 阅读(56) 评论(0) 推荐(0) 编辑
摘要: indexOf()方法 注意:indexOf() 方法对大小写敏感! 注意:如果要检索的字符串值没有出现,则该方法返回 -1。 stringObject.indexOf(searchvalue,formindex) indexOf() 方法可返回某个指定的字符串值在字符串中首次出现的位置。 阅读全文
posted @ 2016-11-17 14:22 junjunzhou 阅读(365) 评论(0) 推荐(0) 编辑
摘要: function is_wexin(){ var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i) == "micromessenger"){ return true; } else{ return fals 阅读全文
posted @ 2016-11-17 14:00 junjunzhou 阅读(334) 评论(0) 推荐(0) 编辑
摘要: window.location.host; //返回url 的主机部分,例如:www.xxx.com window.location.hostname; //返回www.xxx.com window.location.href; //返回整个url字符串(在浏览器中就是完整的地址栏),例如:www. 阅读全文
posted @ 2016-11-17 12:38 junjunzhou 阅读(332) 评论(0) 推荐(0) 编辑
摘要: function cutstr(str ,len){ var temp, icount = 0, patrn =/[^\x00-\xff]/, strre = ""; for(var i = 0; i< str.length; i++){ if(icount < len -1){ temp = st 阅读全文
posted @ 2016-10-20 11:52 junjunzhou 阅读(1125) 评论(0) 推荐(0) 编辑
摘要: valueOf():返回当前对象对应的值。 toString():返回当前对象对应的字符串形式。 toLocalString():返回当前对象对应的本地字符串形式。 hasOwnProperty():判断某个属性是否为当前对象自身的属性,还是继承自原型对象的属性。 isPrototypeOf():判 阅读全文
posted @ 2016-03-07 14:53 junjunzhou 阅读(217) 评论(0) 推荐(0) 编辑
摘要: null表示空值,即该处的值现在为空。典型的用法是: 作为函数的参数,表示该函数的参数是一个没有任何内容的对象。 作为对象原型链的终点。 undefined表示不存在的值,就是此处目前不存在任何值。典型的用法是: 变量被声明了,但没有赋值时,就等于undefined. 调用函数的时,应该提供的参数没 阅读全文
posted @ 2016-03-07 14:01 junjunzhou 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 淘宝的样式初始化:body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td { margi 阅读全文
posted @ 2016-02-23 14:19 junjunzhou 阅读(190) 评论(0) 推荐(0) 编辑