blog icon indicating copy to clipboard operation
blog copied to clipboard

📖 个人博客,分享一些前端工作学习中的收获,欢迎 ✨,博客地址>>

Results 59 blog issues
Sort by recently updated
recently updated
newest added

Bumps [file-type](https://github.com/sindresorhus/file-type) from 14.0.0 to 16.5.4. Release notes Sourced from file-type's releases. v16.5.4 Fix: Malformed MKV could cause an infinite loop https://github.com/sindresorhus/file-type/commit/d86835680f4cccbee1a60628783c36700ec9e254 CVE-2022-36313 Also fixed in 17.1.3 v16.5.3 Upgrade dependencies...

dependencies

Bumps [moment](https://github.com/moment/moment) from 2.24.0 to 2.29.4. Changelog Sourced from moment's changelog. 2.29.4 Release Jul 6, 2022 #6015 [bugfix] Fix ReDoS in preprocessRFC2822 regex 2.29.3 Full changelog Release Apr 17, 2022...

dependencies

大佬!你好呀,关注你很久啦,在掘金上拜读了您非常干货的前端知识分享。 近期 FinClip正在举办作者征文活动,想邀请您来体验 FinClip 小程序容器的功能,并为大家分享一下您的使用体验。官方也会为您提供非常丰富的现金奖励。诚邀您关注参与:https://www.finclip.com/blog/nrgc/ 另外这是我们的官网http://finclip.com/ ,我们的技术主要是围绕「小程序容器技术」,可以帮助任何app、车载、智能终端都拥有小程序运行的能力,期待您的关注。

Bumps [sharp](https://github.com/lovell/sharp) from 0.24.0 to 0.30.5. Changelog Sourced from sharp's changelog. v0.30.5 - 23rd May 2022 Install: pass PKG_CONFIG_PATH via env rather than substitution. @​dwisiswant0 Add support for --libc flag...

dependencies

Bumps [simple-get](https://github.com/feross/simple-get) from 3.1.0 to 3.1.1. Commits 496166d 3.1.1 6eb82c0 Bug fix: Thirdparty cookie leak See full diff in compare view Maintainer changes This version was pushed to npm by...

dependencies

Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.11.0 to 6.12.6. Release notes Sourced from ajv's releases. v6.12.6 Fix performance issue of "url" format. v6.12.5 Fix uri scheme validation (@​ChALkeR). Fix boolean schemas with strictKeywords...

dependencies

## 引言 在浏览器中,我们可以同时打开多个Tab页,每个Tab页可以粗略理解为一个“独立”的运行环境,即使是全局对象也不会在多个Tab间共享。然而有些时候,我们希望能在这些“独立”的Tab页面之间同步页面的数据、信息或状态。 正如下面这个例子:我在列表页点击“收藏”后,对应的详情页按钮会自动更新为“已收藏”状态;类似的,在详情页点击“收藏”后,列表页中按钮也会更新。 ![跨页面通信实例](https://user-gold-cdn.xitu.io/2019/4/1/169d767c01990c37?w=1364&h=876&f=gif&s=2542093) 这就是我们所说的前端跨页面通信。 你知道哪些跨页面通信的方式呢?如果不清楚,下面我就带大家来看看七种跨页面通信的方式。 --- ## 一、同源页面间的跨页面通信 > 以下各种方式的 [在线 Demo 可以戳这里 >>](https://alienzhou.github.io/cross-tab-communication/) 浏览器的[同源策略](https://en.wikipedia.org/wiki/Same-origin_policy)在下述的一些跨页面通信方法中依然存在限制。因此,我们先来看看,在满足同源策略的情况下,都有哪些技术可以用来实现跨页面通信。 ### 1. BroadCast Channel [BroadCast Channel](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel) 可以帮我们创建一个用于广播的通信频道。当所有页面都监听同一频道的消息时,其中某一个页面通过它发送的消息就会被其他所有页面收到。它的API和用法都非常简单。 下面的方式就可以创建一个标识为`AlienZHOU`的频道: ```JavaScript const bc = new...

浏览器
综合

![image](https://user-images.githubusercontent.com/9822789/138406978-749f2e05-737e-411e-9758-9f1fb8eb96a6.png) 最近,在维护 KProxy(一个代理服务,Web 版的 charles) 时,遇到一个故障问题:一个请求的响应早已结束,但是在一段时间后却触发了 request timeout。 ## 1. 问题描述 KProxy server 作为代理服务,收到用户请求时会向真实服务端(real server)发出的一个 HTTP 请求,实现代理。但是,在真实服务端响应结束之后(过了较长一段时间),这个 KProxy 中的该请求的 timeout 事件却被触发了。由于真实服务端的响应早已结束,预期是不会触发 KProxy 请求侧的超时的。结合 KProxy 这边的一些超时保障逻辑,就出现了误“封禁”的问题。 核心情况,简单来说就是:一个请求的响应早已结束,但是在一段时间后却触发了 request timeout。 ## 2....

Node.js
Troubleshooting

> 本文源码基于 v14.17.3。其主要逻辑与概念在近四个双数版本(v10/12/14/16)上基本一致。 ## 1. 引言 在上篇中我们介绍了 Handles 和 Requests 的概念,了解了什么是 Active 状态。并且知道了一个信息 —— Nodejs 使用了 `HandleWrap` 这个基类来作为 libuv 中 Handle 的封装,所以我们有两种获取 Handle 的方式: - 遍历 HandleWrap Queue - 使用...

Node.js

Bumps [color-string](https://github.com/Qix-/color-string) from 1.5.3 to 1.6.0. Release notes Sourced from color-string's releases. 1.6.0 Minor release 1.6.0 #55 - Add support for space-separated HSL Thanks @​htunnicliff for the contribution :) 1.5.5...

dependencies