Get the html of the javascript-rendered page (after interacting with it)(获取 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(与其交互后)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!