8,907
社区成员




var div=document.getElementsByTagName("a");
for(var i=0;i<div.length;i++){
alert(div[i].innerHTML) //这个就是你要的
}
<xsl:element name="a">
<xsl:attribute name="id">newreview</xsl:attribute>
<xsl:attribute name="href">../trac/newcomment.asp?brand=article&record=<xsl:value-of select="article/@id" /></xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
Create New Review
</xsl:element>
[北京]-[上海]<br/>
车次:<a href="/train/train_detail.php?city_id=010&sid=&tuid=22139043&search_type=5002&train_code=D301&start_station=%E5%8C%97%E4%BA%AC&end_station=%E4%B8%8A%E6%B5%B7&from_city=%E5%8C%97%E4%BA%AC">D301</a><br/>
类型:动车组<br/>
开车时间:21:35<br/>
到站时间:07:39<br/>
始发站:北京<br/>
终点站:上海<br/>
--------------<br/>
[北京]-[上海]<br/>
车次:<a href="/train/train_detail.php?city_id=010&sid=&tuid=22139043&search_type=5002&train_code=D305&start_station=%E5%8C%97%E4%BA%AC&end_station=%E4%B8%8A%E6%B5%B7&from_city=%E5%8C%97%E4%BA%AC">D305</a><br/>
类型:动车组<br/>
开车时间:21:40<br/>
到站时间:07:44<br/>
始发站:北京<br/>
终点站:上海<br/>
--------------<br/>
[北京]-[上海]<br/>
车次:<a href="/train/train_detail.php?city_id=010&sid=&tuid=22139043&search_type=5002&train_code=D313&start_station=%E5%8C%97%E4%BA%AC&end_station=%E4%B8%8A%E6%B5%B7&from_city=%E5%8C%97%E4%BA%AC">D313</a><br/>
类型:动车组<br/>
开车时间:21:20<br/>
到站时间:07:19<br/>
始发站:北京<br/>
终点站:上海<br/>