split . aCookieValues, . , , - , .
map, . , :
if (!Array.prototype.map) {
Array.prototype.map = function( f ) {
var result = [];
var aLen = this.length;
for( x = 0 ; x < aLen ; x++ ) {
result.push( f(this[x]) );
}
return result;
};
};
... . :
yourstring = 'x=3&y=4&zed=blah&something=nothing';
dictionary = yourstring.split('&').map( function(a){ return a.split('='); } );
dictionary () /, :
[["x", "3"], ["y", "4"], ["zed", "blahblah"], ["something", "nothing"]]
, . , , , , , .