{{ [key: string]: string }}
解析 URL 使用 ?拼接的参数
wudajian
2023/07/14 04:07:23
const url = 'https://www.example.com/?name=John&age=25&city=New%20York';const params = parseUrlParams(url);console.log(params);// =>{ name: 'John', age: '25', city: 'New York'} Copy
const url = 'https://www.example.com/?name=John&age=25&city=New%20York';const params = parseUrlParams(url);console.log(params);// =>{ name: 'John', age: '25', city: 'New York'}
Generated using TypeDoc
Description
解析 URL 使用 ?拼接的参数
Author
wudajian
Date
2023/07/14 04:07:23
Example