提交 2d28d8e8 编写于 作者: 5 592767809

更新

上级 f5854b97
// window = this;
// navigator = {
// appName: 'Netscape'
// };
// localStorage = {
// getItem: function () {
// return null;
// }
// };
// sessionStorage = {
// getItem: function () {
// return null;
// }
// };
//
// document = {
// cookie: ""
// };
const { JSDOM } = require("jsdom");
const dom = new JSDOM("<html><head></head><body><p>hello word</p></body></html>", {
url: "http://www.iqiyi.com/",
referrer: "http://www.iqiyi.com/",
contentType: "text/html",
includeNodeLocations: true,
storageQuota: 1000000
});
global.window = dom.window;
global.document = window.document;
global.self = window;
document.domain = "iqiyi.com";
const t = require('./webpack_out');
delete process;
delete require;
// delete global;
module = undefined;
let dutO = t('dutO').a;
cons
let dutO = t('295');
console.log(dutO.cmd5x("/dash/asd"));
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册