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);
时间: 2024-10-04 00:01:49