jj-qs
v1.0.4
Published
这是我搞得qs
Downloads
7
Readme
下载
npm i jj-qs -S
使用
//步骤一 const qs = require('jj-qs')
示例 stringfy(转换内容必须是·对象·)
const a = {a:1,b:2}
//步骤二 const res=qs.stringfy(a) console.log(res)
结果:{ obj1: 'a=1&b=2' }
示例 params
const b = 'www.baidu.com?a=1&b=2'
//步骤二 qs.params(b)