From f19a46a41577d9a778b0f77d3babf436822c18b7 Mon Sep 17 00:00:00 2001 From: liudongqi Date: Wed, 4 Sep 2024 14:27:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 钩子触发后的回掉