覆盖

<!DOCTYPE html>
<html>
<head>
    <title>覆盖</title>
</head>
<body>
<p>2017</p>
<button onclick="fu()">覆盖</button>
<script>
    function fu() {
        document.write("2018");
    }
</script>
</body>
</html>
原文地址:https://www.cnblogs.com/ren120165809/p/9866496.html