📄 ajaxmanager3_column2.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Introduction to Ajax Tutorial</title>
</head>
<body>
<p class="code">
onmousedown=”functionNameHere
(‘caselabelhere’)”
</p>
<p class="main">
or
</p>
<p class="code">
ajaxManager(‘start_up’)
</p>
<p class="main">
would signify to the browser to use the function ajaxManager
and to only execute the start_up case. In using the case /
switch method in this manner we are effectively creating sub
functions within the main function that often results in code
brevity.
</p>
<p class="main">
<strong>Line 4:</strong> Creates our first case. In this
instance we are creating a case labelled load_page.
</p>
<p class="main">
<strong>Line 5:</strong> We don't want older browser to
use the script so we create an if condition to allow only
browsers that support document.getElementById
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -