<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script type="text/javascript" src="js/jquery-3.1.0.js">
</script>
<style type="text/css">
div {
width: 100px;
height: 100px;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
```
#### 群组选择器:多个选择器之间用 , 隔开
var $divs = $('#div1, #div2'); 逗号隔开
console.log($divs);
$divs.css('background-color', 'red');
#### 后代选择器:父标签选择器 + 空格 + 子标签的选择器
var $divs1 = $('#div2 div');
console.log($divs1);
#### 通配符选择器:用*选中所有的标签
var $general = $('*');
console.log($general);
})
</script>
</head>
<body>
<div id="div1"></div>
<div id="div2">
<div class="div1">
<div></div>
</div>
<div class="div2"></div>
<div class="div3"></div>
</div>
<div class="div4"></div>
</body>
</html>