上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 60 下一页
摘要: Ajax 请求会受到浏览器同源策略的制约 Cookie 的 SameSite 属性表示该 Cookie 是否能被跨站发送 same origin 同源: 源(origin)= 协议(scheme)+ 主机名(hostname)+ 端口号(port) same site 同站: 站(site)= eT 阅读全文
posted @ 2022-05-13 22:59 hh9515 阅读(164) 评论(0) 推荐(0) 编辑
摘要: let arr = [12,5,0,12,15,23,0,19,23] arr.sort((a,b)=>{console.log('compare'+a+'$'+b)}) compare函数有两个参数a和b,通过打印可以看到,是两两比较的,a是靠后的值,b是靠前的值。(注意,这里跟百度的绝大多数描述 阅读全文
posted @ 2022-04-08 02:01 hh9515 阅读(480) 评论(0) 推荐(0) 编辑
摘要: split editor的快捷键 (设置 split editor 快捷键) split editor的撤销操作 { "key": "alt+q", "command": "workbench.action.closeEditorsInOtherGroups" } 阅读全文
posted @ 2021-11-16 11:53 hh9515 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 跨域的问题你不想开服务器的话先这样处理open -n /Applications/Google\ Chrome.app/ --args --disable-web-security --user-data-dir=/Users/user1/MyChromeDevUserData user1换成自己的 阅读全文
posted @ 2021-10-28 18:31 hh9515 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 1 https://zhuanlan.zhihu.com/p/44933789?spm=a2c4g.11186623.2.15.6e445c7ck67At9 2 https://juejin.cn/post/6844903976899444744 3 https://juejin.cn/post/6 阅读全文
posted @ 2021-08-28 21:28 hh9515 阅读(33) 评论(0) 推荐(0) 编辑
摘要: https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming https://www.w3.org/TR/navigation-timing/?spm=a2c63.p38356.879954.7.161114c8FvWjxj 阅读全文
posted @ 2021-08-28 10:30 hh9515 阅读(29) 评论(0) 推荐(0) 编辑
摘要: FID指标: https://wicg.github.io/event-timing/ fid是一个field(真实场景)指标(区别于lab指标),first-input是使用performanceObserver去侦测一个真实的值,并用大量的上报的数据来进行统计。 与之对应的是tbt(是一个lab 阅读全文
posted @ 2021-08-27 17:59 hh9515 阅读(427) 评论(0) 推荐(0) 编辑
摘要: first paint vs first contentful paint https://newrelic.com/blog/how-to-relic/browser-first-paint-first-contentful-paint https://github.com/w3c/paint-t 阅读全文
posted @ 2021-08-27 17:45 hh9515 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-27 15:49 hh9515 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 总结: 目标:尽快生成rendertree(rendertree包含了各节点以及他们的computed样式,之后进行layout和paint) 需要:DOMTree和CSSOM Tree ,一起生成renderTree 1. js可能会查询cssom,所以必须先加载完cssom,才能执行js (可以 阅读全文
posted @ 2021-06-06 20:30 hh9515 阅读(107) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 60 下一页