1、getElementById():getElementById() 方法可返回对拥有指定 ID 的第一个对象的引用
2、querySelectorAll() :方法返回文档中匹配指定 CSS 选择器的所有元素,返回 NodeList 对象
//html<div id="app">app<div class="one">hello 1</div><div class="one">hello 2</div><div class="one">hello 3</div><div class="one">hello 4</div></div>//script<script>var app=document.getElementById("app")console.log(app);var all=document.querySelectorAll(".one")console.log(all);</script>

