矮个子。我有以下代码:
elements.select("#offers_table > tbody > tr:nth-child(2) > td > table > tbody > tr:nth-child(2) > td:nth-child(1) > div > p.color-9.lheight16.marginbott5.x-normal").get(0).toString();我得到了
<p class="color-9 lheight16 marginbott5 x-normal"> This is the text I would like to get </p>如何获得
这是我想要的课文
从这里?
发布于 2015-07-19 13:55:38
使用element.text(),其中element是您的元素。
https://stackoverflow.com/questions/31501959
复制相似问题