开发者

What is the difference between jsdom.env() and jsdom.jsdom?

开发者 https://www.devze.com 2023-02-23 00:36 出处:网络
I am still foggy开发者_StackOverflow社区 about how to used jsdom. What is the difference between jsdom.env() and jsdom.jsdom?The readme file explains that

I am still foggy开发者_StackOverflow社区 about how to used jsdom. What is the difference between jsdom.env() and jsdom.jsdom?


The readme file explains that

jsdom.env is built for ease of use, which is rare in the world of the DOM! Since the web has some absolutely horrible javascript on it, as of jsdom 0.2.0 jsdom.env will not process external resources (scripts, images, etc). If you want to process the javascript use one of the methods below (jsdom.jsdom or jsdom.jQueryify)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号