jquery建立相似於java的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);rem

相關文章
相關標籤/搜索