diff --git a/routes/index.js b/routes/index.js index 4447b70..0b81224 100644 --- a/routes/index.js +++ b/routes/index.js @@ -69,6 +69,8 @@ function loadJs(window, jsText) { } js += ";\n" }) + + console.log('js 加载--->', js) return js; } @@ -103,10 +105,10 @@ async function handle(url, htmlStr, jsText, cookie, userAgent) { browser(window, 'chrome'); // 加载js let js = loadJs(window, jsText); + // console.log('js 加载--->', js) + // 执行 js let script = new Script(js); - console.log('js 加载--->', jsText) - let internalVMContext = dom.getInternalVMContext(); script.runInContext(internalVMContext); // 等待 onbeforeunload 钩子触发后的回掉