parse
static
void
parse
(
qs
,
sep
,
eq
)
- Parameters:
-
qs <String>
Querystring to be parsed into an object. -
sep <String>
(optional) Character that should join param k=v pairs together. Default: "&" -
eq <String>
(optional) Character that should join keys to their values. Default: "="
stringify
static
void
stringify
(
obj
,
cfg
)
Converts a simple object to a Query String representation.
Nested objects, Arrays, and so on, are not supported.
- Parameters:
-
obj <Object>
A single-level object to convert to a querystring. -
cfg <Object>
(optional) Configuration object. In the simple module, only the arrayKey setting is supported. When set to true, the key of an array will have the '[]' notation appended to the key;.
unescape
static
void
unescape
(
s
)
- Parameters:
-
s <String>
String to be decoded.