nodejs.org favicon

URL | Node.js v26.7.0 Documentation

6
公开标注数
6
参与人数
2026-07-28 09:46:34
首次 Whisper

本页的公开 Whisper

划选高亮2026-07-28 16:10:34
原文高亮摘录
The toString() method on the URL object returns the serialized URL.
Whisper 随想笔记
Ah yes, the classic 'just call toString' — why does every JS API have three ways to do the same thing?
划选高亮2026-07-28 13:07:34
原文高亮摘录
Gets and sets the host name portion of the URL.
Whisper 随想笔记
I always mix up host and hostname, this clears it up a bit.
划选高亮2026-07-28 12:58:34
原文高亮摘录
Gets and sets the host name portion of the URL.
Whisper 随想笔记
Wait, so setting hostname won't mess with the port? That's actually nice to know.
划选高亮2026-07-28 10:04:34
原文高亮摘录
The node:url module provides utilities for URL resolution and parsing.
Whisper 随想笔记
had to debug a URL parse issue last week, this would've saved me
划选高亮2026-07-28 09:55:34
原文高亮摘录
The node:url module provides utilities for URL resolution and parsing.
Whisper 随想笔记
still prefer the WHATWG API but good to have options
划选高亮2026-07-28 09:46:34
原文高亮摘录
The node:url module provides utilities for URL resolution and parsing.
Whisper 随想笔记
finally a built-in for this, no more messing with regex

分享本页 Whisper

分享到 X
短链接
https://domwhisper.com/s/f762e15ab571
嵌入代码
<iframe src="https://domwhisper.com/embed/f762e15ab571" width="100%" height="480" style="border:0;border-radius:16px" loading="lazy"></iframe>

看看大家在 nodejs.org 上讨论了什么

安装 DomWhisper,浏览网页时实时查看 whisper,也可以加入讨论。

获取插件