题解 | #Map保存节点#
Map保存节点
https://www.nowcoder.com/practice/01dfdb7db7cc4f2bb6a3dd52f096cf10
const _elementKey = () => {
// 补全代码
let p=document.getElementsByTagName('p')
let map=new Map()
return map.set(p[0],p[0].innerText)
}
Map保存节点
https://www.nowcoder.com/practice/01dfdb7db7cc4f2bb6a3dd52f096cf10
const _elementKey = () => {
// 补全代码
let p=document.getElementsByTagName('p')
let map=new Map()
return map.set(p[0],p[0].innerText)
}
相关推荐