05 2017 档案

摘要:Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 re 阅读全文
posted @ 2017-05-26 21:57 开发之路 阅读(428) 评论(0) 推荐(0) 编辑
摘要:MIME (Multipurpose Internet Mail Extensions) 是描述内容类型的互联网标准。Clients use this content type or media type header to select an appropriate viewer applicat 阅读全文
posted @ 2017-05-25 21:37 开发之路 阅读(2188) 评论(0) 推荐(0) 编辑
摘要:RegExp 创建正则表达式的方式: 如果正则表达式不需要动态生成时,创建固定正则表达式对象: var reg=/正则表达式/g; 正则表达式中所有/都要换为\/ 如果正则表达式由变量或字符串动态生成时,创建可变正则表达式对象: var reg=new RegExp("正则表达式","后缀"); 注 阅读全文
posted @ 2017-05-24 14:25 开发之路 阅读(225) 评论(0) 推荐(0) 编辑
摘要:1.滚动条默认是在html上的,移到body上 2.高清屏1px边框还原 <meta name="viewport" content="initial-scale=0.3333333333333333, maximum-scale=0.3333333333333333, minimum-scale= 阅读全文
posted @ 2017-05-23 10:38 开发之路 阅读(626) 评论(0) 推荐(0) 编辑
摘要:Meta标签中的http-equiv用来标记不可缓存或过期时间,但效果一般。而且代理缓存基本不访问HTML文档内容,所以尽量少用meta标签控制缓存。 Pragma: no-cache Forces caches to submit the request to the origin server 阅读全文
posted @ 2017-05-15 13:36 开发之路 阅读(4712) 评论(0) 推荐(0) 编辑
摘要:用fiddler调试http请求,在ie浏览器下,如果请求命中缓存,fiddler不会包含该请求。但是在chrome下会包含缓存的请求,Result显示为304。 ie浏览器还会缓存通过ajax请求的数据,导致后续ajax的请求数据不能更新。实际上是只缓存get方式的请求,post方法因为每次的数据 阅读全文
posted @ 2017-05-10 16:26 开发之路 阅读(534) 评论(0) 推荐(0) 编辑
摘要:Window.devicePixelRatioThis read-only property returns the ratio of the resolution in physical pixels to the resolution in CSS pixels for the current 阅读全文
posted @ 2017-05-09 22:16 开发之路 阅读(463) 评论(0) 推荐(0) 编辑
摘要:Webpack是一个现代js应用的模块打包机。如果一个文件依赖另一个文件,webpack认为这就存在一个依赖关系。不管另一个文件是什么内容,image,css或js都被当作一个模块。Webpack从entry points开始构建依赖关系图,将应用所需要的所有模块处理成浏览器可识别的格式,再打包成一 阅读全文
posted @ 2017-05-06 14:12 开发之路 阅读(6593) 评论(2) 推荐(0) 编辑
摘要:最近准备换工作,需要更新一下技能树。为做到有的放矢,想对招聘方的要求做个统计。正好之前了解过nodejs,所以做了个爬虫搜索数据。 具体步骤: 1. 先用fiddler分析请求需要的header和body。 2. 再用superagent构建上述数据发送客户端请求。 3. 最后对返回的数据使用che 阅读全文
posted @ 2017-05-06 10:33 开发之路 阅读(614) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示