摘要: js获取dom的方法 1.通过ID获取 getElementById() <body> <div id="box"></div> </body> <script> const box=document.getElementById("box") </script> 结果:返回一个dom对象 2.通过 阅读全文
posted @ 2021-12-10 11:32 梦话! 阅读(1358) 评论(0) 推荐(0)