📄 ajaxmanager3_column1.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Introduction to Ajax Tutorial</title>
</head>
<body>
<p class="main">
<strong>Line 3:</strong> The function uses a case / switch
methodology. Often rather than having a series of if / else
statements we can use a case switch method with the same
result with much less code and consequently more efficient
processing of the script. A basic format for case switching
is as follows.
</p>
<p class="code">
switch (expression) {<br />
case label1:<br />
// Code to be executed<br />
break;<br />
case label2:<br />
// Code to be executed<br />
break;<br />
}
</p>
<p class="main">
In our code the expression is signified by an argument so
that later we can use the labels of each case and call them
from an event handler. By way of example,
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -