破解方法在地址栏中输入
javascript:alert(document.documentElement.outerHTML);
<html>
<head>
<scriptlanguage="javascript">
functionclear(){
Source=document.body.firstChild.data;
document.open();
document.close();
document.title="看不到源代码";
document.body.innerHTML=Source;
}
</script>
</head>
<bodyonload=clear()>
111111111111111111111111111111</body>
</html>
javascript:alert(document.documentElement.outerHTML);
<html>
<head>
<scriptlanguage="javascript">
functionclear(){
Source=document.body.firstChild.data;
document.open();
document.close();
document.title="看不到源代码";
document.body.innerHTML=Source;
}
</script>
</head>
<bodyonload=clear()>
111111111111111111111111111111</body>
</html>
本文介绍了一种通过JavaScript绕过网站源代码查看限制的方法。利用特定的JavaScript代码,可以实现获取并显示被隐藏的HTML源代码,对于研究网站结构及前端开发人员来说十分有用。
115

被折叠的 条评论
为什么被折叠?



