jquery Map

var map = {}; // Map map = new HashMap();
map[key] = value; // map.put(key, value);
var value = map[key]; // Object value = map.get(key);
var has = key in map; // boolean has = map.containsKey(key);
delete map[key]; // map.remove(key);


本文出自 “老谢” 博客,谢绝转载!

你可能感兴趣的:(jquery,Web,map)