ajax2.html

来自「《JavaScript精粹》 源文件下载」· HTML 代码 · 共 27 行

HTML
27
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
  <title>Accessible XMLHttpRequest Test 2</title>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <script type="text/javascript" src="ajax2.js"></script>
</head>
<body>
  <h1>
    Test 2
  </h1>
  <p>
    In Test 2, a paragraph will be updated with the reponse text and
    then the <code>location</code> will be set to its fragment-ID.
  </p>
  <p>
    <a href="./" id="trigger">This link is the trigger.</a>
  </p>
  <p id="response">
    This paragraph will update with the response.
  </p>
  <p>
    This is some text that comes after the response,
    to check continuity.
  </p>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?