getAll(key: string): string[]
参数 | 类型 | 描述 |
key | string | 键 |
类型 | 描述 |
string[] | 指定搜索参数对应的所有值 |
import url from 'pts/url';export default function() {const params = new url.URLSearchParams('key1=value1&key2=value2');params.append('key1', 1);console.log(params.getAll('key1')); // value1,1}
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback