关于如何使用jsdom,我仍然模糊不清. jsdom.env()和jsdom.jsdom有什么区别?
最佳答案
The readme file解释了这一点
原文链接:/js/429432.htmljsdom.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)