查询字符串


¥Query string

稳定性: 3 - 旧版

¥Stability: 3 - Legacy

源代码: lib/querystring.js

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

¥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 被视为旧版。虽然它仍在维护,但新代码应该改用 <URLSearchParams> API。

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