dojo.objectToQuery
<script src="../../js/dojo.js"></script>
defined in dojo/_base/xhr.js
takes a name/value mapping object and returns a string representing a URL-encoded version of that object.
Usage
function (/*Object*/ map) (view source)
parameter | type | description |
---|---|---|
map | Object |
Examples
Example 1
this object:
{
blah: "blah",
multi: [
"thud",
"thonk"
]
};
yields the following query string:
"blah=blah&multi=thud&multi=thonk"