File tree Expand file tree Collapse file tree 4 files changed +25
-23
lines changed
慕课网教程案例/jQuery入门教程/jQuery遍历 Expand file tree Collapse file tree 4 files changed +25
-23
lines changed Original file line number Diff line number Diff line change 25
25
color : blue;
26
26
}
27
27
</ 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 >
29
29
</ head >
30
30
31
31
< body >
Original file line number Diff line number Diff line change 8
8
< style >
9
9
.left {
10
10
width : auto;
11
- height : 120 px ;
11
+ height : 200 px ;
12
12
}
13
13
14
14
.left div {
21
21
border : 1px solid # ccc ;
22
22
}
23
23
24
- span { color : blue; }
24
+ span {
25
+ color : blue;
26
+ }
25
27
</ 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 >
27
29
</ head >
28
30
29
31
< body >
@@ -51,27 +53,27 @@ <h2>find方法()</h2>
51
53
</ ul >
52
54
</ div >
53
55
</ div >
56
+ < button > 点击:find传递表达式</ button >
57
+ < br />
58
+ < br />
54
59
< 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 >
69
73
</ div >
70
-
71
74
< br />
72
75
< br />
73
- < button > 点击:find无参数</ button >
74
- < button > 点击:find传递表达式</ button >
76
+ < button > 点击:find传递$对象</ button >
75
77
< script type ="text/javascript ">
76
78
$ ( "button:first" ) . click ( function ( ) {
77
79
//在class="left"的元素中
Original file line number Diff line number Diff line change 25
25
color : blue;
26
26
}
27
27
</ 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 >
29
29
</ head >
30
30
31
31
< body >
Original file line number Diff line number Diff line change 24
24
color : blue;
25
25
}
26
26
</ 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 >
28
28
</ head >
29
29
30
30
< body >
You can’t perform that action at this time.
0 commit comments