tencent cloud

URLSearchParams.values
Last updated: 2025-03-11 20:21:26
URLSearchParams.values
Last updated: 2025-03-11 20:21:26
URLSearchParams.values is used to get all values in the search parameter.
values(): string[]

Return

Type
Description
string[]
All values in the search parameter.

Samples

Get all values for the specified search parameter:
import url from 'pts/url';

export default function() {
const params = new url.URLSearchParams('key1=value1&key2=value2');

console.log(params.values()); // value1,value2
}

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback