js和jQuery获取页面html js方式:document.documentElement.outerHTML jQuery方式:$(":root").html()或者$("html").html() 但是jQuery获取到的缺少<html>标签对,截图如下