获取页面的全部内容? [英] Get entire content of page?

查看:76
本文介绍了获取页面的全部内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

那么是否有可能在当前状态下拦截页面的全部内容。例如,如果通过jquery与页面交互,我通过插入内容或添加或删除类名来修改文档。是否有可能从目前的形式获得此文件的标记从启动html标记到html标记?

解决方案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆