hasQueryParam 函数用于检查 URL 是否包含指定查询参数。
import { hasQueryParam } from '@movk/core'
hasQueryParam('https://example.com?page=1', 'page') // true
hasQueryParam('https://example.com?page=1', 'sort') // false
hasQueryParam('https://example.com?flag', 'flag') // true (无值参数)
hasQueryParam(url, key)检查 URL 是否包含指定查询参数。
7c832 — refactor!: 重构模块架构,拆分 utils 为专业化模块