javascript - 如何在 node.js 上使用cheerio 获得价值
问题描述
如何在node.js上使用cheerio获得源代码的IMVALUE?
元素/视图源:
<div class="e7m mess_bodiyy">
<p style="max-width: 600px">
Hello x7907062441,
<br />
<br />
This is the value:
<br />
<a href="http://mywebsite.com" target="_blank" rel="nofollow">
IMVALUE
</a>
.<br />
<br />
</p>
</div>
我试过了
const src = $('<div class="e7m mess_bodiyy"></div>').
但结果是不确定的。
解决方案
推荐阅读
- vector - 八度:矩阵内接近的值
- java - 为什么我的 RestTemplate 的 Mockito 存根不起作用
- python - Python:使用 QUOTE_NONNUMERIC 编写 CSV,但 None 除外
- python-packaging - 访问基于 Python 诗歌的包的数据资源
- json - 从 pandas.io.json 导入带有空列表的 json_normalize
- regex - 使用 awk 时缺少一些文件夹名称
- c# - 从谷歌图像搜索中获取 HTML 后,在 C# 搜索的第一页上获取每个图像的 URL 的最佳方法是什么?
- vba - 在 PowerPoint 中访问任务完成状态
- javascript - Nativescript 水平滚动效果很好,但不适用于项目模板
- autodesk-forge - 将 AutoDesk Forge 查看器环境从本地切换到 AutodeskProduction