The QueryString module adds support for serializing JavaScript objects into query strings and parsing JavaScript objects from query strings format.
escape
Provides Y.QueryString.escape method to be able to override default encoding method. This is important in cases where non-standard delimiters are used, if the delimiters would not normally be handled properly by the builtin (en|de)codeURIComponent functions. Default: encodeURIComponent
parse
qs
sep
eq
Accept Query Strings and return native JavaScript objects.
stringify
obj
cfg
name
Converts an arbitrary value to a Query String representation.
Objects with cyclical references will trigger an exception.
obj
Any
any arbitrary value to convert to query string
cfg
Object
(optional) Configuration object. The three supported configurations are:
name
String
(optional) Name of the current key, for handling children recursively.
unescape
s
Provides Y.QueryString.unescape method to be able to override default decoding method. This is important in cases where non-standard delimiters are used, if the delimiters would not normally be handled properly by the builtin (en|de)codeURIComponent functions. Default: replace "+" with " ", and then decodeURIComponent behavior.
s
String
String to be decoded.