urlObject.query
query 属性可以是没有前导 ASCII 问号 (?) 的查询字符串,或者是由 querystring 模块的 parse() 方法返回的对象。query 属性是字符串还是对象取决于传递给 url.parse() 的 parseQueryString 参数。
🌐 The query property is either the query string without the leading ASCII
question mark (?), or an object returned by the querystring module's
parse() method. Whether the query property is a string or object is
determined by the parseQueryString argument passed to url.parse().
例如:'query=string' 或 {'query': 'string'}。
🌐 For example: 'query=string' or {'query': 'string'}.
如果作为字符串返回,则不会对查询字符串进行解码。如果作为对象返回,则键和值都会被解码。
🌐 If returned as a string, no decoding of the query string is performed. If returned as an object, both keys and values are decoded.