Appearance
getURLParameters(url): Record<string, string>
url
Record
string
获取 URL 参数
解析 URL 中的查询参数
Record<string, string>
包含所有参数的对象
Example
getURLParameters('https://example.com?name=John&age=30'); // 返回 { name: 'John', age: '30' }