QS

中文文档地址:https://storm4542.github.io/archives/7b89c88d.html

qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' })
// 'a[0]=b&a[1]=c'
qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' })
// 'a[]=b&a[]=c'
qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' })
// 'a=b&a=c'

 

posted @ 2019-11-14 14:17  果果1024  阅读(143)  评论(0)    收藏  举报