getQueryParam 函数用于从 URL 获取指定查询参数的值。
import { getQueryParam } from '@movk/core'
getQueryParam('https://example.com?name=John&age=30', 'name')
// 'John'
getQueryParam('https://example.com?tags=a&tags=b', 'tags')
// 'a' (返回第一个值)
getQueryParam('https://example.com', 'name')
// null
getQueryParam(url, key)从 URL 获取指定查询参数的值。
null。getQueryParams7c832 — refactor!: 重构模块架构,拆分 utils 为专业化模块