let sourceCodeTxt = '';
var xhr = new XMLHttpRequest();
xhr.open('GET', window.location.href, false);
xhr.send();
sourceCodeTxt= xhr.responseText;
let sourceCodeTxt = '';
var xhr = new XMLHttpRequest();
xhr.open('GET', window.location.href, false);
xhr.send();
sourceCodeTxt= xhr.responseText;
本文标题:js获取网页源代码
本文链接:https://www.haomeiwen.com/subject/zxutbctx.html
网友评论