?? 13.4 隨日期變換的文本.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+" "); 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 + -