<div class="codetitle"> <span><a style="CURSOR: pointer" data="10990" class="copybut" id="copybut10990" onclick="doCopy('code10990')"><u>复代码</u></a></span> 代码如下:</div> <div class="codebody" id="code10990"> <br><%@ Page Language="C#" %> <br><br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > <br><br><script runat="server"></script> <br><br><html xmlns="http://www.w3.org/1999/xhtml" > <br><head runat="server"> <br><title>无标题页</title> <br><script src="../jquery脚本/jquery-1[1].3.2.min.js" src="jquery脚本/jquery-1[1].3.2.min.js" type=" 텍스트/자바스크립트"></script> <br><script type="text/javascript"><!-- <BR>$(document).ready(function(){ <BR>$("tr").each(function(){ <BR>$(this).children("td:not(:first,:last)").each(function(){ <BR>$(this).css('color','blue'); <BR>}); <BR>}) <BR>}); <br><br>// --></script> <br></head> <br><본문> <br><form id="form1" runat="server"> <br><div> <br><테이블> <br><tr> <br><td>1</td> <br><td>2</td> <br><td>3</td> <br><td>4</td> <br></tr> <br><tr> <br><td>1</td> <br><td>2</td> <br><td>3</td> <br><td>4</td> <br></tr> <br></테이블> <br><br></div> <br></form> <br></body> <br></html> <br> </div> <br>PS: <br>$(document).ready()由于应用场景众多,所以可以直接用$(fn)来代替,fn表示处理函数。(ready处函数貌似재문档内容载入完成后执行,无需等待待关它图文等资源载入完成,所以比load事件要更早执行,对于这点,没有具体证实)$(document).ready()由于应用场景众多,所以可以直接用$(fn)来代替,fn表示处理函数。源载入完成,所以比load事件要更早执行,对于这点,没有具体证实)