提问人:notAChance 提问时间:3/22/2023 更新时间:3/22/2023 访问量:235
nodejs 解析 HTML 字符串并根据类名提取元素
nodejs parse HTML string and extract element based on class name
问:
我有类似于以下 HTML 的东西:
//more html up here
<tr class="i want to parse all html then find this class element based on this class name">
// more html in here
</tr>
//more html down here
我怎样才能通过它的类名找到这个元素,并使用类似 nodejs 的东西提取其中的所有内容?tr
node-html-parser
我在这里尝试过建议,但到目前为止没有任何效果。
答: 暂无答案
评论