获取javascript呈现的页面的html(与它进行交互之后) [英] Get the html of the javascript-rendered page (after interacting with it)
本文介绍了获取javascript呈现的页面的html(与它进行交互之后)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设我点击一个复选框或javascript集合各种元素的值。
如何保存javascript呈现页面?
谢谢。
解决方案
应该这样做,并且会抓住ALL页面而不仅仅是body
的console.log(document.getElementsByTagName( 'HTML')[0] .innerHTML);
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(与它进行交互之后)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文