⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 13.4 随日期变换的文本.htm

📁 一些javascript的小例子希望对初学者有更好的帮助
💻 HTM
字号:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>无标题页</title>
<script language="JavaScript"> 
  var today = new Date();          //  获取当前日期
  var month = today.getMonth() + 1;//  获取月
  var date = today.getDate();      //获取日
  var year = today.getYear();      //获取年
    notes = new Array;
    notes[1] = "1号的信息";
    notes[2] = "2号的信息";
    notes[3] = "3号的信息";
    notes[4] = "4号的信息";
    notes[5] = "5号的信息";
    notes[6] = "6号的信息";
    notes[7] = "7号的信息";
    notes[8] = "8号的信息";
    notes[9] = "9号的信息";
    notes[10] = "10号的信息";
    notes[11] = "文明排队日";
    notes[12] = "12号的信息";
    notes[13] = "13号的信息";
    notes[14] = "14号的信息"
    notes[15] = "15号的信息";
    notes[16] = "16号的信息";
    notes[17] = "17号的信息";
    notes[18] = "18号的信息";
    notes[19] = "19号的信息";
    notes[20] = "20号的信息";
    notes[21] = "21号的信息";
    notes[22] = "无车日";
    notes[23] = "23号的信息";
    notes[24] = "24号的信息";
    notes[25] = "25号的信息";
    notes[26] = "26号的信息";
    notes[27] = "27号的信息";
    notes[28] = "28号的信息";
    notes[29] = "29号的信息";
    notes[30] = "30号的信息";
    notes[31] = "31号的信息";
    var todayMsg = notes[date];     //获取要显示的信息
</script>
</head>
<body>
     当前的日期为:<div style="background-color:Gray"><script language="javascript">document.write(today+"&nbsp;&nbsp;"); document.write(todayMsg)</script></div>
     <br />
    <p>
        调试其他进程的能力赋予您极广泛的权力,这是无法通过其他途经获得的,在进行远程调试时更是如此。恶意的调试器可能对正在调试的计算机造成大范围的损害。因此,对可能进行调试的人要有所限制。有关更多信息,请参见<a
           >远程调试权限</a>。</p>
    <p>
        但是,许多开发人员没有意识到安全威胁也可以从相反的方向产生。调试对象进程中的恶意代码可能危害调试计算机的安全:有许多必须防范的不道德的安全利用。</p>
    <h1 >
        安全性最佳做法</h1>
    <div>
        <p>
            正在调试的代码与调试器之间有一种隐式信任关系。如果想调试代码,您还应该乐于运行它。您起码必须能够信任要调试的代码。如您无法信任它,就不应对它进行调试,或者应在可以承担风险且处于独立环境的计算机上对其进行调试。</p>
        <p>
            为了缩小潜在的攻击面,应在生产计算机上禁用调试。出于同样的原因,永远不应无限制地启用调试。
        </p>
</div>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -