1.jquery 解析如下td 里面的值。
<table>
<tr class="">
<td class="num">1</td><th title="日期:23:00 - 23:59">23:00 - 23:59</th><td title="浏览量(PV):5,945">5,945</td><td title="访客数(UV):53" class="nbr">53</td>
</tr>
<tr class="">
<td class="num">2</td><th title="日期:22:00 - 22:59">22:00 - 22:59</th><td title="浏览量(PV):6,266">6,266</td><td title="访客数(UV):108" class="nbr">108</td>
</tr>
<tr class="">
<td class="num">3</td><th title="日期:21:00 - 21:59">21:00 - 21:59</th><td title="浏览量(PV):6,816">6,816</td><td title="访客数(UV):121" class="nbr">121</td>
</tr>
</table>
2.双重循环:
<script type="text/javascript"> function dodd(){ var str=""; $("table tr").each(function(i){ $("table tr").eq(i).find('td').each(function(j){ var temp=$("table tr").eq(i).find('td').eq(j).html(); str=str+temp+":"; }); }); alert(str); } </script>