获取页面的全部内容? [英] Get entire content of page?
本文介绍了获取页面的全部内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
Can not你只需在DOM中获取根对象并调用innerHTML来获取它?
So is it possible to snag the entire content of a page in its current state. For example, if interacting with a page, via jquery, I've modified the document by either inserting content, or by adding or removing class names. Is it possible to get the markup of this document in its current form from starting html tag to html tag?
解决方案
Can't you just get the root object in the DOM and call innerHTML to get it all?
这篇关于获取页面的全部内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文