tencent cloud

Tencent Cloud Observability Platform

URLSearchParams.values

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 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
}


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백