1. 通过 outerHTML
    document.documentElement.outerHTML
    
  2. 通过异步请求(完整源码,推荐)
    $.get(window.location.href,function(res){
       console.log(res);
    });
    
  3. 通过jQuery
    $("html").html();

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2022-02-02
  • 2022-12-23
猜你喜欢
  • 2021-11-27
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
相关资源
相似解决方案