1.http1.0和http2.0 的区别
- http1.0利用文本与服务器进行交互,而http2.0的基本协议单位是二进制帧
- http2.0只建立一次连接,即一轮三次握手,实现多路复用。
- http2.0会压缩消息头
- http2.0支持服务器推送数据的功能
2.代码题
let { a: b, c: d } = { a: 1, b: 2, c: 3, d: 4};
console.log(a + c): //error 'a' is not defined 'c' is not defined
console.log(b): //1
console.log(d): //3
3.手动实现Function.prototype.bind
手动实现Function.prototype.bind
4.用JavaScript实现一个目录结构
5.用react实现一个模态框(弹窗)
6.sessionStorage的使用情景
7.get请求有请求体吗?
没有
8.给cookie设置httponly属性后,可以通过document.cookie读吗?
不可以