?? 16.9 判斷變量是否已經定義.htm
字號:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>標題頁</title>
<script language ="javascript">
function judge()
{
if(typeof(iTxt)=="undefined")
alert("iTxt變量未定義")
else
alert("iTxt變量已經定義");
}
</script>
</head>
<body>
<input id="Button1" type="button" value="判斷" onclick="judge()" />
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -