<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript"  type="text/javascript" src="file:///C:\Documents and Settings\Administrator\桌面\jquery-1.3.2.js">
</script >   
<script type="text/javascript" language=javascript>
document.write("<b> 测试</b>");
document.write("<p>"+$("table").attri("id")+"</p>");
$(function(){
alert(this);});</script></head><body>
<table id=ff style=" background-color:#009999 "width="200" border="2">
  <tr>
    <th scope="col">&nbsp;</th>
    <th scope="col">&nbsp;</th>
    <th scope="col">&nbsp;</th>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>dsd</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>
随后我尝试使用get()方法,用dom原生方法getAttribute(),也照样显示不出来ID来..真的不知道是为什么,其他属性都可以输出,就是id