const jsdom = require('jsdom');
const { JSDOM } = jsdom;
const { document } = (new JSDOM('<!doctype html><html><body></body></html>')).window;
global.document = document;
global.window = document.defaultView;
const $ = require('jquery')(window);

 

相关文章:

  • 2021-07-02
  • 2022-01-02
  • 2022-03-07
  • 2022-12-23
  • 2022-12-23
  • 1970-01-01
  • 2022-12-23
猜你喜欢
  • 2022-02-24
  • 2021-12-09
  • 2021-05-07
  • 2021-12-23
  • 2022-03-02
  • 2022-01-15
  • 2021-06-28
相关资源
相似解决方案