xml
<script>
//在对象中,所有的key,最终都会转成字符串类型
let user={
"name":"贾维斯",
age:20
}
let root =document.querySelector('#root')
user[root]="文本"
console.log(user);
let map=new Map()
map.set(root,"文本")
console.log(map);
let arr=new Map()
arr.set(['a'],55)
console.log(arr.get(['a']));
let map1=new Map()
let k1=["贾维斯"]
let k2=["星期五"]
map1.set(k1,100)
map1.set(k2,200)
console.log(map1.get(k1));
</script>