Skip to content

Commit 29a2eed

Browse files
committed
更新遍历方法
1 parent 72f1b23 commit 29a2eed

File tree

4 files changed

+25
-23
lines changed

4 files changed

+25
-23
lines changed

慕课网教程案例/jQuery入门教程/jQuery遍历/closest方法.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
color: blue;
2626
}
2727
</style>
28-
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.js"></script>
28+
<script src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
2929
</head>
3030

3131
<body>

慕课网教程案例/jQuery入门教程/jQuery遍历/find方法.html

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<style>
99
.left {
1010
width: auto;
11-
height: 120px;
11+
height: 200px;
1212
}
1313

1414
.left div {
@@ -21,9 +21,11 @@
2121
border: 1px solid #ccc;
2222
}
2323

24-
span { color: blue; }
24+
span {
25+
color: blue;
26+
}
2527
</style>
26-
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.js"></script>
28+
<script src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
2729
</head>
2830

2931
<body>
@@ -51,27 +53,27 @@ <h2>find方法()</h2>
5153
</ul>
5254
</div>
5355
</div>
56+
<button>点击:find传递表达式</button>
57+
<br/>
58+
<br/>
5459
<h3>find表达式</h3>
55-
56-
<p>
57-
<span>测试1</span>
58-
<a>测试2</a>
59-
</p>
60-
61-
<p>
62-
<span>慕课网1</span>
63-
<a>慕课网2</a>
64-
</p>
65-
66-
<div>
67-
<span>Aaron1</span>
68-
<a>Aaron2</a>
60+
<div style="border:1px solid red;">
61+
<p>
62+
<span>测试1</span>
63+
<a>测试2</a>
64+
</p>
65+
<p>
66+
<span>慕课网1</span>
67+
<a>慕课网2</a>
68+
</p>
69+
<div>
70+
<span>Aaron1</span>
71+
<a>Aaron2</a>
72+
</div>
6973
</div>
70-
7174
<br/>
7275
<br/>
73-
<button>点击:find无参数</button>
74-
<button>点击:find传递表达式</button>
76+
<button>点击:find传递$对象</button>
7577
<script type="text/javascript">
7678
$("button:first").click(function() {
7779
//在class="left"的元素中

慕课网教程案例/jQuery入门教程/jQuery遍历/parent()方法.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
color: blue;
2626
}
2727
</style>
28-
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.js"></script>
28+
<script src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
2929
</head>
3030

3131
<body>

慕课网教程案例/jQuery入门教程/jQuery遍历/parents()方法.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
color: blue;
2525
}
2626
</style>
27-
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.js"></script>
27+
<script src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
2828
</head>
2929

3030
<body>

0 commit comments

Comments
 (0)