importjs3_column1.html

来自「Ajax tutorial archive」· HTML 代码 · 共 39 行

HTML
39
字号
<!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(&#39;head&#39;)[0];
               </p>
               <p class="code">
                  <strong>Line 2:</strong> setjs =
                  document.createElement(&#39;script&#39;);
               </p>
               <p class="code">
                  <strong>Line 3:</strong> setjs.setAttribute(&#39;type&#39;,
                  &#39;text/javascript&#39;);
               </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&#39;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 + =
减小字号Ctrl + -
显示快捷键?