开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜