📄 importjs3_column1.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Introduction to Ajax Tutorial</title>
</head>
<body>
<p class="code">
<strong>Line 1:</strong> var getheadTag =
document.getElementsByTagName('head')[0];
</p>
<p class="code">
<strong>Line 2:</strong> setjs =
document.createElement('script');
</p>
<p class="code">
<strong>Line 3:</strong> setjs.setAttribute('type',
'text/javascript');
</p>
<p class="code">
<strong>Line 4:</strong> getheadTag.appendChild(setjs);
</p>
<p class="code">
<strong>Line 5:</strong> setjs.text = x.responseText;
</p>
<p class="main">
Most of function has been covered before and to avoid
excessive repetition I just want to highlight the particular
section we haven't covered as yet. You can look at the
whole script in the examples 9 folder if you feel lost.
</p>
<p class="main">
<strong>Line 1:</strong> The first thing we want to do is
grab the head tag. We can do this by using
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -