自治高级面试题
为什么
const a1 = [1, 2]
a1 instanceof Object // true
a1 instanceof Array // true
1
2
3
4
2
3
4
答案:
a1.__proto__.constructor === Array // true
a1.__proto__.constructor === Object // false
1
2
2
缓存:
缓存的分类
- 强缓存 Expires Expires:Thu, 21 Jan 2017 23:39:02 GMT Cache-Control Cache-Control:max-age=3600
- 协商缓存 Last-Modified If-Modified-Since Last-Modified: Wed, 26 Jan 2017 00:35:11 GMT Etag If-None-Match
https://segmentfault.com/a/1190000040748678
上次更新: 2022/07/03, 15:02:21