Skip to content
On this page

wm-kit / Exports / objectToQuery

Function: objectToQuery

objectToQuery(obj): string

将对象转为query字符串

Parameters

NameTypeDescription
objobject & ParamsObject需要转换的对象

Returns

string

string

示例

ts
import { objectToQuery } from 'wm-kit'
objectToQuery({name: 'loclink', age: 18}) // => name=loclink&age18

Defined in

src/modules/url/index.ts:14

Released under the MIT License.