当前位置: 代码迷 >> 综合 >> js获取整个页面源码
  详细解决方案

js获取整个页面源码

热度:80   发布时间:2023-10-22 12:12:41.0
  1. 通过 outerHTML
    document.documentElement.outerHTML
    
  2. 通过异步请求
    $.get(window.location.href,function(res){console.log(res);
    });
    
  3. 通过jQuery
    $("html").html();
  相关解决方案