How can I dump the entire Web DOM in its current state in Chrome?

后端 未结 4 1281
名媛妹妹
名媛妹妹 2021-01-03 18:12

I want to dump the current DOM to a file and be able to view it offline. Essentially, I have an outdated version of a page that I would like to keep around for comparison. A

4条回答
  •  天命终不由人
    2021-01-03 18:42

    Using the Web Inspector (F12), go to the Elements tab, right click on the tag in your code and select Copy->Copy outerHTML. Then paste that into a new file and save.

提交回复
热议问题