getQueryParams 函数用于从 URL 获取所有指定查询参数的值(用于多值参数)。
import { getQueryParams } from '@movk/core'
getQueryParams('https://example.com?tags=a&tags=b&tags=c', 'tags')
// ['a', 'b', 'c']
getQueryParams('https://example.com?name=John', 'name')
// ['John']
getQueryParams('https://example.com', 'name')
// []
getQueryParams(url, key)从 URL 获取所有指定查询参数的值。
7c832 — refactor!: 重构模块架构,拆分 utils 为专业化模块