查询字符串


🌐 Query string

源代码: lib/querystring.js

node:querystring 模块提供了解析和格式化 URL 查询字符串的实用工具。可以使用以下方式访问:

🌐 The node:querystring module provides utilities for parsing and formatting URL query strings. It can be accessed using:

const querystring = require('node:querystring'); 

querystring API 被视为遗留 API。虽然它仍然在维护中,但新的代码应改用 <URLSearchParams> API。

🌐 The querystring API is considered Legacy. While it is still maintained, new code should use the <URLSearchParams> API instead.