- The inherit() CSS function - This can be useful if you want to take a value from the parent element, and make an adjustment to it “in-place”, e.g.
--foo: calc(inherit(-foo) * 2)
. -
AbortSignal is a cool API, but it’s also quite dangerous in practice - Ref
- 遇到马拉松活动封路以及其他类似交通管制等有感, 当对面是 Power 时, 你能做的是尽可能配合直到结束. 花费大量精力[人力/物力]期望办好的一件事, 断人财路犹如弑人父母,此仇不共戴天, 那么只能用 Power 来解决任何阻拦行为
- 大多数团队基本是草台班子,甚至是一言堂作坊
-
在国内手里有点钱的中产阶级,拿着钱都已经买不到价格合理,货真价实的东西了 - Ref
- 空船效应[情绪管理与自我修养] - 当你划船时,另一条船撞了你,你发现船上没人,于是你不会生气;但如果船上有人,你就会立刻愤怒。我们的情绪往往来自“认为对方有意为之”;当我们把他人视为“空船”(没有恶意),就能保持平静;
- chrome: split view 功能真好用
-
他们都不差钱,反而在钱上闹僵
- HTTP#Header
An object implementing Headers can directly be used in a for…of structure, instead of entries(): for (const p of myHeaders) is equivalent to for (const p of myHeaders.entries()).
- HTTP headers - HTTP#Forbidden request header, Forbidden response header, CORS-safelisted request header
- HTTP#Payload header, Representation header - HTTP/2 不再支持 Transfer-Encoding header[自动忽略];
- HTTP#Server-Sent Events - Lib XStream 处理 SSE 相关数据 - Code - 接到 buffer[chunk] 原始数据,使用 decoder[utf-8] 解析成 string,按协议[sse] 解析成 event/data,再给处理函数, 一直到结束
- Stream#Streams API
- Stream#Response.body
- Stream#ReadableStream/ReadableStreamDefaultController/Transferable objects
- Stream#ReadableStream.getReader/ReadableStreamDefaultReader
- Stream#WritableStream/WritableStreamDefaultController
- Stream#WritableStream.getWriter/WritableStreamDefaultWriter
- Stream#TransformStream/TransformStreamDefaultController
- Stream#CountQueuingStrategy
- Stream#Blob.stream()
- Stream#TextDecoderStream/TextEncoderStream
- Encoding#TextDecoder/TextEncoder/Encoding
- HTTP#valid HTTP Header name Blob: a file-like object of immutable, raw data; File: 继承 Blob
- HTTP#When are HTTP header values comma or semi-colon separated? 都可以使用多个 header-key/header-value 对, 但 Set-Cookie 的 header-value 不支持多个值; 多值使用
,
分隔; 单个值中可以有多条指令使用;
分隔 - ChatGPT - HTTP#URLSearchParams - Concurrent modifications when iterating
- HTTP#Percent-encoding IP6 用到
[
,]
字符 - Ref, application/x-www-form-urlencoded percent-encode set, Preserving plus signs - HTTP#Request. 实例上存在一些 .clone()/.json() 等方法
- HTTP#sendBeacon - 适合发送少量数据; 或者使用 fetch + keepalive
- HTTP#Response/Response.bodyUsed/Response.ok
- HTTP#
no-cache
- no use of cached response without revalidation - 解析 base64 字符串时,使用 forgiving-base64 decode 算法,会自动忽略无效字符[空格/回车/换行/制表符],目的是解决历史遗留问题/添加空白方便阅读. ex:
atob('Y W J j')
2025 第 42 周
发布: