Hash object (associative array) is a new object created by Prototype. To create a Hash object, you can call the $H(object) method. Because of the characteristics of JavaScript itself (the object itself is an associative array), it is also very simple to implement Hash. In Prototype Hash is just an associative array (object) of JavaScript keys(): Returns the key value array of hash values(): Returns the value array merge(hash): Merge Two hashes toQueryString(): follow the idea of the toQueryParams method of string, convert the hash into a querystring, and call encodeURIComponent to encode the key and value inspect(): The string of hash Indicates that the newly created hash inherits the method of Enumerable. Because hash is just an ordinary object in JavaScript, so to add a key-value pair, use: hash[key]=value. To delete a key-value pair, use detele hash[key]. That's it