URLSearchParams:append() 方法
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2018年4月.
备注: 此特性在 Web Worker 中可用。
URLSearchParams
接口的 append()
方法将指定的键/值对附加为新的查询参数。
如下面的示例所示,如果同一个键被多次附加,则它将为每个值多次出现在参数字符串中。