js 环境

const jsdom = require("jsdom");
const CryptoJS = require("crypto-js");
const {JSDOM} = jsdom;
const dom = new JSDOM(`<!DOCTYPE html><p>Hello world</p>`, {url: "https://www.tiktok.com/"});
window = dom.window;
document = window.document;
posted @ 2023-10-26 10:48  howhy  阅读(8)  评论(0编辑  收藏  举报