📄 importjs2_column2.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>
Introduction to Ajax Tutorial
</title>
</head>
<body>
<p class="main">
In that example, we are loading in a separate JavaScript file
named alert.js through the xmlhttprequest object. The
alert.js file looks like this:
</p>
<p class="code">
function showAlert() {<br />
alert('hi there, I was loaded externally');<br />
}
</p>
<p class="main">
It is just a simple alert contained within a function. The
guts of the procedure is contained I the importjs.js file so
let us look at that in more detail. In particular we are
interested in the load_js case:
</p>
<p class="main">
We will take a look at that function on the next page.
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -