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

前端 未结 13 1497
既然无缘
既然无缘 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 09:19

    1) What does it mean for it to have a D ocument O bject M odel? There's no document to represent.

    2) You're most of the time you're not retrieving pages. You can, but most Node apps probably won't be.

    3) Without a document and a browser, Javascript is just another programming language. So you may ask why there isn't a DOM in C# or Java

    0 讨论(0)
提交回复
热议问题