?? debugexample4.htm
字號(hào):
<html>
<head>
<title>Debug Example</title>
<script type="text/javascript">
function divide(iNum1, iNum2) {
if (arguments.length != 2) {
throw new Error("divide() requires two arguments.");
} else if (typeof iNum1 != "number" || typeof iNum2 != "number") {
throw new Error("divide() requires two numbers for arguments.");
}
return iNum1.valueOf() / iNum2.valueOf();
}
alert(divide("a"));
</script>
</head>
<body>
<p>This page throws a custom JavaScript error.</p>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -