Table of Contents
parse
Parse params from query string
Parameters
queryString
String Query string. May include host and hash. If string not include query params thish function will parse hash paramsoptions
Object (optional, default{output:'tree',conversion:true}
)
Examples
; ; // { // foo: 'bar' // } ; // { // foo: [1, 2] // } ; // { // foo: 1, // bar: { // x: 2, // y: 3 // } // } ; // { // foo: [{ // x: 10, // y: 20 // }, { // x: 30, // y: 40 // }] // }
stringify
Convert object to query string
Parameters
Examples
; ; // '?foo=bar' ; // '?foo[]=1&foo[]=2' ; // '?foo=1&bar[x]=2&bar[y]=3' ; // '?foo[0][x]=10&foo[0][y]=20&foo[1][x]=30&foo[1][y]=40'
Returns String