Appearance
function parseUrl(url: string): URLWithParam | null
解析URL
const url = 'https://www.baidu.com/s?wd=hello#world' const result = parseUrl(url)
url
string
统一资源定位符
URLWithParam | null
URLWithParam
null