A hash object (associated array) is a new prototype object. To create a hash object, you can call the $ H (object) method. Because of the characteristics of JavaScript itself (the object itself is an associated array ), so it is easy to implement hash. The hash in prototype is only an associated array (object) of JavaScript)
Keys ():Returns the hash key-value array.
Values ():Returns an array of values.
Merge (hash ):Merge two hashes
Toquerystring ():The toqueryparams method of string is used to convert hash into a querystring, and encodeuricomponent is called to encode the key and value.
Inspect ():The hash string indicates that the created hash inherits the enumerable method. Because hash is only a common JavaScript Object, add a key-Value Pair using: hash [Key] = value. delete a key-Value Pair and use detele hash [Key ].
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.