tencent cloud

Tencent Cloud Observability Platform

URLSearchParams.values

PDF
Focus Mode
Font Size
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
}


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback