2.0.3 • Published 3 years ago

kiss-qs v2.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

仿qs模块

使用1 下载cheng-qs -S模块,导入模块

npm i cheng-qs -S

const qs = require('cheng-qs')

语法1:qs.stringify(对象)
作用1:转GET参数去问号

语法2:qs.parse(GET参数去问号)
作用2:转对象

npm install -g npm@latest npm config set registry https://registry.npmjs.org/

使用2 下载cheng-qs -g模块,在命令行敲命令

下载:npm i cheng-qs -g
语法:qs 'GET参数去问号'     
作用:转对象