QueryString Class
The QueryString module adds support for serializing JavaScript objects into query strings and parsing JavaScript objects from query strings format.
Item Index
Methods
- stringify static
Methods
stringify
(
public
static
-
obj
-
cfg
-
name
Converts an arbitrary value to a Query String representation.
Objects with cyclical references will trigger an exception.
Parameters:
-
obj
Variantany arbitrary value to convert to query string
-
cfg
Object(optional) Configuration object. The three supported configurations are:
- sep: When defined, the value will be used as the key-value separator. The default value is "&".
- eq: When defined, the value will be used to join the key to the value. The default value is "=".
- arrayKey: When set to true, the key of an array will have the '[]' notation appended to the key. The default value is false.
-
name
String(optional) Name of the current key, for handling children recursively.