<!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.
谢谢
相关分类