- {string}
获取及设置 URL 的序列化查询部分。
const myURL = new URL('https://example.org/abc?123');console.log(myURL.search);// 打印 ?123myURL.search = 'abc=xyz';console.log(myURL.href);// 打印 https://example.org/abc?abc=xyz
分配给 search 属性的值中包含的无效 URL 字符是[百分比编码的][percent-encoded]。
选择哪些字符进行百分比编码可能与 [url.parse()] 和 [url.format()] 方法产生的内容有所不同。
