JS Map的使用 声明 var map = new Map(); 设值 map.set("key","value"); 取值 map.get("key"); 判断key是否存在 map.has("key"); 删除key map.delete("key");