用JS获取某段内容中的特定内容,求解
比如有段代码如下:
<td class= "text-searchtb "> <div align= "left "> 1120319 </div> </td>
<td class= "text-searchtb "> <div align= "left "> 叶逦阳 </div> </td>
<td class= "text-searchtb "> <div align= "left "> 90.0 </div> </td>
<td class= "text-searchtb "> <div align= "left "> 88.0 </div> </td>
<td class= "text-searchtb "> <div align= "left "> 93.0 </div> </td>
<td class= "text-searchtb "> <div align= "left "> 132.0 </div> </td>
<td class= "text-searchtb "> <div align= "left "> 96.5 </div> </td>
<td class= "text-searchtb "> <div align= "left "> 90.0 </div> </td>
<td class= "text-searchtb "> <div align= "left "> 10.0 </div> </td>
<td class= "text-searchtb "> <div align= "left "> 599.5 </div> </td>
我现在想用JS获取 <div align= "left "> ... </div> 中间的数据,存到一个数组中,后期使用,不知道该怎么写,请帮忙看看
------解决方案--------------------你的星星怎么来的呀?
查一下JS手册.关于正则匹配....
------解决方案-------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN ">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME= "Generator " CONTENT= "EditPlus ">
<META NAME= "Author " CONTENT= " ">
<ME