UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

9 lines (8 loc) 346 B
/** * 将参数对象转换为 query 字符串(不进行 URL 编码) * @param {Record<string, string | number>} [query={}] 参数对象 * @returns {string} 拼接后的 query 字符串 * @example * genQueryToStr({ a: 1, b: 2 }); // => 'a=1&b=2' */ export declare function genQueryToStr(query?: Record<string, string | number>): string;