stringifyQuery 函数用于将对象序列化为查询字符串。
import { stringifyQuery } from '@movk/core'
stringifyQuery({ name: 'John', age: 30 })
// 'name=John&age=30'
stringifyQuery({ tags: ['a', 'b', 'c'] })
// 'tags=a&tags=b&tags=c'
stringifyQuery({ name: '中文' })
// 'name=%E4%B8%AD%E6%96%87'
stringifyQuery({ a: null, b: undefined, c: '' }, { skipNull: true, skipEmpty: true })
// ''
stringifyQuery(params, options?)将对象序列化为查询字符串。
null 和 undefined 值。repeat(默认)、bracket、index、comma。?)。7c832 — refactor!: 重构模块架构,拆分 utils 为专业化模块