Displaying 1 result from an estimated 1 matches for "40doe".
Did you mean:
40de
2005 Dec 08
2
Prototype.js Hash Methods
.../returns #<Hash:{''name'': ''john doe'', ''email'': ''john-Ch9RrZxMC0c@public.gmane.org'', ''msg'': ''say hello to me''}>
var qs = h.toQueryString();
alert(qs);
//returns john%20doe&email=john%40doe.com&msg=say%20hello%20to%20me
var mer = h.merge(h);
alert(mer.name);
//returns john doe
alert(mer.email);
//returns john-Ch9RrZxMC0c@public.gmane.org
alert(mer.msg);
//returns say hello to me
var a_keys = h.keys();
alert(a_keys);
//returns name, email, msg
var a_values = h.values();
alert(...