我正在使用mozilla中的firebug查看jsp页面,
<tr class="header">
<tr class="even" onmouseout="low(this);" onmouseover="high(this);" style="">
<tr class="odd" onmouseout="low(this);" onmouseover="high(this);" style="">
<tr class="even" onmouseout="low(this);" onmouseover="high(this);" style="">
<tr class="odd" onmouseout="low(this);" onmouseover="high(this);" style="">
<tr class="even" onmouseout="low(this);" onmouseover="high(this);" style="">
<tr class="odd" onmouseout="low(this);" onmouseover="high(this);">
<tr class="even" onmouseout="low(this);" onmouseover="high(this);">
<tr class="odd" onmouseout="low(this);" onmouseover="high(this);">
当我将鼠标放在其中一个<tr>
上时
XPath显示如下
/html/body/table/tbody/tr[2]/td/table/tbody/tr/td/table/tbody/tr[2]/td/form/span/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr[2]
/html/body/table/tbody/tr[2]/td/table/tbody/tr/td/table/tbody/tr[2]/td/form/span/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr[3]
/html/body/table/tbody/tr[2]/td/table/tbody/tr/td/table/tbody/tr[2]/td/form/span/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr[4]
我的问题是如何从tr [2]&amp;获得值2?来自tr [3]&amp; 3的3 4从tr [4]等等......
谢谢:)