提交 85ba4aae 编写于 作者: 杜庆泉's avatar 杜庆泉

Update map.md

上级 0ea1b4ca
......@@ -172,8 +172,9 @@ console.log(nameVal)
let map = new Map<string,any>()
map.set("name","zhangsan")
map.set("age",12)
map.forEach(function(key:string,value:any){
map.forEach(function(value:any | null,key:string){
console.log(key)
console.log(value)
})
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册