jQuery 抄袭笔记(12) : Each-Find
14 Oct 2011
01 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
02 <html xmlns="http://www.w3.org/1999/xhtml">
03 </span>
04 <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
05</span>Hello Lazynight!</title>
06 <script src="jquery-1.1.3.pack.js" type="text/javascript"></script>
07 <script type="text/javascript">
08 $(document).ready(function(){
09 $("#Lazy_list1").find("li").each(function(i){
10 $(this).html($(this).html()+"————欢迎您!"+i);
11
12 });
13 });
14 </script>
15 </head>
16 </span>
17 <ul id="Lazy_list1">
18</span>Lazynight | 夜阑</li>
19</span>Lazynight | 夜阑</li>
20</span>Lazynight | 夜阑</li>
21</span>Lazynight | 夜阑</li>
22</span>Lazynight | 夜阑</li>
23</span>Lazynight | 夜阑</li>
24</span>Lazynight | 夜阑</li>
25 </ul>
26 <ul id="Lazy_list2">
27</span>Lazynight | 夜阑</li>
28</span>Lazynight | 夜阑</li>
29</span>Lazynight | 夜阑</li>
30</span>Lazynight | 夜阑</li>
31</span>Lazynight | 夜阑</li>
32</span>Lazynight | 夜阑</li>
33</span>Lazynight | 夜阑</li>
34 </ul>
35 </body>
36
37 </html> </div> 下载源码 转载请注明:[于哲的博客][1] » [jQuery 抄袭笔记(12) : Each-Find][2] [1]: http://lazynight.me [2]: http://lazynight.me/498.html
02 <html xmlns="http://www.w3.org/1999/xhtml">
03 </span>
04 <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
05
06 <script src="jquery-1.1.3.pack.js" type="text/javascript"></script>
07 <script type="text/javascript">
08 $(document).ready(function(){
09 $("#Lazy_list1").find("li").each(function(i){
10 $(this).html($(this).html()+"————欢迎您!"+i);
11
12 });
13 });
14 </script>
15 </head>
16 </span>
17 <ul id="Lazy_list1">
18
19
20
21
22
23
24
25 </ul>
26 <ul id="Lazy_list2">
27
28
29
30
31
32
33
34 </ul>
35 </body>
36
37 </html> </div> 下载源码 转载请注明:[于哲的博客][1] » [jQuery 抄袭笔记(12) : Each-Find][2] [1]: http://lazynight.me [2]: http://lazynight.me/498.html