本文介绍了获取 javascript 渲染页面的 html(与其交互后)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I would like to be able to save the state of the html page after I've interacted with it.
Say I click a checkbox, or the javascript set the values of various elements.
How can I save the "javascript-rendered" page?
Thanks.
解决方案That should do and will grab the ALL page not just the body
console.log(document.getElementsByTagName('html')[0].innerHTML);
更多推荐
获取 javascript 渲染页面的 html(与其交互后)
发布评论