<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript" src="js/jquery-1.11.3.js" ></script> </head> <body> <div class="test1">12123</div> <script> var obj1 = document.getElementsByClassName("test1"); var obj2 = document.querySelector(".test1"); var $obj3 = $(".test1") console.log(obj1,$(obj1)) console.log(obj2,$(obj2)) console.log($obj3) </script> </body></html>1.dom对象就是js对象么?2.obj1和obj2是一样的吗?3.(obj1),(obj2)和$obj3这三个是什么关系?相等的吗?还是?谢谢
添加回答
举报
0/150
提交
取消