js 获取map的key和value值: var map1 = {"name":"age"} for(const key in map1) { console.log("key="+key+", value="+map1[key]); } 输出: key=name, value=age