摘要: 任意写一个div,任意设置id test 打印出window对象,发现window.document.all下面挂载了test 使用document.getElementById('test')获取id为test的元素 因为window是默认的全局对象,所以可以简写,原来是window.docume 阅读全文
posted @ 2022-01-21 02:40 poder 阅读(243) 评论(0) 推荐(0)