Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在prototype.js的哈希中为一个键设置多个值?例如:
var hash={2005: [107, 31, 635, 203, 2]}
你可以把你写的东西完全转换成这样的哈希
var hash=$H({2005: [107, 31, 635, 203, 2]}); console.log(hash.get(2005)); //returns [107, 31, 635, 203, 2] as an array