Why doesn't Node.js have a native DOM?

前端 未结 13 1636
既然无缘
既然无缘 2020-11-28 08:32

When I discovered that Node.js was built using the V8 JavaScript engine, I thought:

Great, web scraping will be easier as the page

13条回答
  •  一生所求
    2020-11-28 08:59

    Javascript != browser. Javascript as a language is not tied to browsers; node.js is simply an implementation of Javascript that is intended for servers, not browsers. Hence no DOM.

提交回复
热议问题