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);