【问题标题】:is it possible to request a url and parse the html content in nodejs using a DOM manipulation tool like DOMDocument in php?是否可以使用 DOM 操作工具(如 php 中的 DOMDocument)请求 url 并解析 nodejs 中的 html 内容?
【发布时间】:2011-10-14 09:19:49
【问题描述】:

是否可以使用 DOM 操作工具(如 php 中的 DOMDocument)在 nodejs 中请求 url 并解析 html 响应?

【问题讨论】:

标签: dom node.js


【解决方案1】:

是的,jsdom(也是好文章here

【讨论】:

  • 再努力一点!
  • 如何在我们的网页上导入jsdom,真的需要在服务器上物理导入文件吗?
  • @ThorDozer 你能举出更详细的例子吗?
猜你喜欢
  • 1970-01-01
  • 2011-02-04
  • 1970-01-01
  • 2011-10-11
  • 2013-02-08
  • 1970-01-01
  • 1970-01-01
  • 2011-09-12
  • 1970-01-01
相关资源
最近更新 更多