node补充dom环境
const {JSDOM} = jsdom; const dom = new JSDOM(`<!DOCTYPE html><div>11111111</div>`);
window = dom.window;
document = window.document;
window.navigator = { "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36" };