87,921
社区成员
发帖
与我相关
我的任务
分享
", "upDate": "2021-05-28T19:16:27+08:00" }
<script type="text/javascript"></script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<style type="text/css">
body {
display:none;
}
</style>
</head>
<body>
在这标签上面的HTML代码全都无效,<br />
不能被访问到。然后我把他删了,整个页面都显示不出来了。
<script type="text/javascript">
document.body.style.display="block";
document.body.innerHTML = "";
</script>
AAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAA<br />
</body>
</html>
<html>
<head>
<title> New Document </title>
<script type="text/javascript">
function test()
{
alert("hello world!");
}
</script>
</head>
<body>
<input id="testbtn" type="button" value="test" onclick="test();">
</body>
</html>