From d5880866e00b2add16cb5a79ed1e397343d49b41 Mon Sep 17 00:00:00 2001 From: liudongqi Date: Wed, 4 Sep 2024 14:50:59 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/index.js b/routes/index.js index 5c2ecb0..e4f9e04 100644 --- a/routes/index.js +++ b/routes/index.js @@ -92,7 +92,7 @@ async function handle(url, htmlStr, jsText, cookie, userAgent) { } // 加载dom let dom = await jsDom(htmlStr); - // console.log('html 加载--->', dom.serialize()) + console.log('html 加载长度--->', dom.serialize().length) window = dom.window // js执行成功后的瑞树会跳转页面 会触发onbeforeunload钩子 window.onbeforeunload = async (url) => { @@ -105,7 +105,7 @@ async function handle(url, htmlStr, jsText, cookie, userAgent) { browser(window, 'chrome'); // 加载js let js = loadJs(window, jsText); - console.log('js 加载--->', js) + console.log('js 加载长度--->', js.length) // 执行 js let script = new Script(js);