【发布时间】:2015-06-01 20:17:24
【问题描述】:
我正在使用 Google Chrome 控制台获取所有具有 attrValue 类的元素的数组。这是我正在使用的:
$x('//*[@class="attrValue"]');
这是我的输出:
<td class="attrValue">Transway 1A</td>, <td class="attrValue">Northbound/Westbound</td>, <td class="attrValue">Facing West</td>
获取所有元素的数组非常有用,但我正在尝试获取这些元素中的值数组。任何帮助将不胜感激。
【问题讨论】:
标签: html google-chrome xpath google-chrome-devtools