PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
bower-config
/
node_modules
/
mout
/
src
/
queryString
define(['../object/forOwn','../lang/isArray','../array/forEach'], function (forOwn,isArray,forEach) { /** * Encode object into a query string. */ function encode(obj){ var query = [], arrValues, reg; forOwn(obj, function (val, key) { if (isArray(val)) { arrValues = key + '='; reg = new RegExp('&'+key+'+=$'); forEach(val, function (aValue) { arrValues += encodeURIComponent(aValue) + '&' + key + '='; }); query.push(arrValues.replace(reg, '')); } else { query.push(key + '=' + encodeURIComponent(val)); } }); return (query.length) ? '?' + query.join('&') : ''; } return encode; });
[-] encode.js
[edit]
[-] getParam.js
[edit]
[+]
..
[-] contains.js
[edit]
[-] parse.js
[edit]
[-] decode.js
[edit]
[-] getQuery.js
[edit]
[-] setParam.js
[edit]