上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 87 下一页
摘要: 1. hash模式 监听window.onhashChange事件,通过event的oldUrl和newUrl来做一些切换操作 2. history模式 监听window.onpopstate事件,来在路由切换时候做一些操作 常用的state api有: history.pushState(data 阅读全文
posted @ 2020-04-26 14:46 全玉 阅读(760) 评论(0) 推荐(0) 编辑
摘要: 1. .htaccess文件的作用 .htaccess目录访问策略配置文件,放在目录中,作用与当前目录及其子目录。 具体支持: 1. rewrite 重定向路由2. 设置目录访问权限,允许/禁止3. 自定义404错误页4. 改变文件扩展名5. 文件夹密码保护 2. try_files try_fil 阅读全文
posted @ 2020-04-26 13:52 全玉 阅读(5855) 评论(0) 推荐(0) 编辑
摘要: 1. Http basic Authorization 基于浏览器的一种鉴权方式。1. 未授权请求,拦截,返回 401 Unauthorised2. 支持的浏览器弹出用户名密码框,输入用户名密码,连同上次请求数据,一起发送到服务端使用授权头,Authorization: Basic [base64] 阅读全文
posted @ 2020-04-25 15:43 全玉 阅读(3057) 评论(0) 推荐(0) 编辑
摘要: 1. client hello,协商TLS版本号,加密套件,一个随机数(client random)2. server hello, 确认TLS版本号,加密套件,发送公钥证书,一个随机数(server random)3. 客户端验证数字证书,取出公钥,加密一个随机数(premaster secret 阅读全文
posted @ 2020-04-25 14:24 全玉 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1. 聚焦和失焦的事件 focus 不支持冒泡,所有浏览器 blur 不支持冒泡,所有浏览器 focusin 支持冒泡,现代浏览器(ie 9+,chrome,firefox,safari) focusout 支持冒泡,现代浏览器(ie 9+,chrome,firefox,safari) 2. 哪些元 阅读全文
posted @ 2020-04-21 00:11 全玉 阅读(3407) 评论(0) 推荐(0) 编辑
摘要: 1. TCP队头阻塞 TCP数据包是有序传输,中间一个数据包丢失,会等待该数据包重传,造成后面的数据包的阻塞。 2. HTTP队头阻塞 http队头阻塞和TCP队头阻塞完全不是一回事。 http1.x采用长连接(Connection:keep-alive),可以在一个TCP请求上,发送多个http请 阅读全文
posted @ 2020-04-18 10:59 全玉 阅读(6452) 评论(0) 推荐(0) 编辑
摘要: babel-plugin-dynamic-import-node //支持import('comXXX').then()写法 babel-plugin-dynamic-import-webpack //支持import('comXXX').then()写法 babel-plugin-import / 阅读全文
posted @ 2020-04-15 10:24 全玉 阅读(2450) 评论(0) 推荐(0) 编辑
摘要: GET请求 curl http://localhost:8888/mock/api POST请求(-X可以省略,-d默认就是POST参数) curl -X POST -d '{"name":"api1","content":"api1 conent","method":"get","url":"/u 阅读全文
posted @ 2020-04-13 13:40 全玉 阅读(414) 评论(0) 推荐(0) 编辑
摘要: vue scoped生成带hash attitude的html,css使用hash attr的属性选择器保持唯一性。 例如: <div class="example">hi</div> .example { color: red; } 生成: <div class="example" data-v- 阅读全文
posted @ 2020-04-10 10:10 全玉 阅读(659) 评论(0) 推荐(0) 编辑
摘要: Parent-- Child1-- Child2 装载 parent beforeCreateparent createdparent beforeMountchild1 beforeCreatechild1 createdchidl1 beforeMountchild2 brforeCreatec 阅读全文
posted @ 2020-04-09 11:17 全玉 阅读(213) 评论(0) 推荐(0) 编辑
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 87 下一页