⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 7.htm

📁 javascript book
💻 HTM
📖 第 1 页 / 共 3 页
字号:
            </dir>  
          </dir>  
        </dir>  
      </dir>  
      <p align="right" style="line-height: 150%"> 
      <table border="1" borderColor="#000000" cellPadding="7" cellSpacing="1" width="532">
        <tbody>
          <tr>
            <td vAlign="top" width="138">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">参 
              数</font></p>
            </td>
            <td vAlign="top" width="90">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">设定值</font></p>
            </td>
            <td vAlign="top" width="246">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">含 
              义</font></p>
            </td>
          </tr>
          <tr>
            <td vAlign="top" width="138">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">toolbar</font></p>
            </td>
            <td vAlign="top" width="90">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">yes/no</font></p>
            </td>
            <td vAlign="top" width="246">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">建立或不建立标准工具条</font></p>
            </td>
          </tr>
          <tr>
            <td vAlign="top" width="138">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">location</font></p>
            </td>
            <td vAlign="top" width="90">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">yes/no</font></p>
            </td>
            <td vAlign="top" width="246">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">建立或不建立位置输入字段</font></p>
            </td>
          </tr>
          <tr>
            <td vAlign="top" width="138">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">directions</font></p>
            </td>
            <td vAlign="top" width="90">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">yes/no</font></p>
            </td>
            <td vAlign="top" width="246">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">建立或不建立标准目录按钮</font></p>
            </td>
          </tr>
          <tr>
            <td vAlign="top" width="138">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">status</font></p>
            </td>
            <td vAlign="top" width="90">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">yes/no</font></p>
            </td>
            <td vAlign="top" width="246">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">建立或不建立状态条</font></p>
            </td>
          </tr>
          <tr>
            <td vAlign="top" width="138">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">menubar</font></p>
            </td>
            <td vAlign="top" width="90">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">yes/no</font></p>
            </td>
            <td vAlign="top" width="246">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">建立或不建立菜单条</font></p>
            </td>
          </tr>
          <tr>
            <td vAlign="top" width="138">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">scrollbar</font></p>
            </td>
            <td vAlign="top" width="90">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">yes/no</font></p>
            </td>
            <td vAlign="top" width="246">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">建立或不建立滚动条</font></p>
            </td>
          </tr>
          <tr>
            <td vAlign="top" width="138">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">revisable</font></p>
            </td>
            <td vAlign="top" width="90">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">yes/no</font></p>
            </td>
            <td vAlign="top" width="246">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">能否改变窗口大小</font></p>
            </td>
          </tr>
          <tr>
            <td vAlign="top" width="138">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">width</font></p>
            </td>
            <td vAlign="top" width="90">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">yes/no</font></p>
            </td>
            <td vAlign="top" width="246">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">确定窗口的宽度</font></p>
            </td>
          </tr>
          <tr>
            <td vAlign="top" width="138">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">Height</font></p>
            </td>
            <td vAlign="top" width="90">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">yes/no</font></p>
            </td>
            <td vAlign="top" width="246">
              <p align="center" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">确定窗口的高度。</font></p>
            </td>
          </tr>
        </tbody>
      </table>
      <p style="line-height: 150%"> </p>
      <p align="right" style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3"> </font></p>
      <p style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">在使用Open()方法时,需要注意以下点。</font></p>
      <dir>
        <dir>
          <p style="line-height: 150%"><font size="3"><font face="System,??" lang="ZH-CN"><img src="Bullet3.gif" width="12" height="12"></font><font face="宋体" lang="ZH-CN"> 通常浏览器窗中,总有一个文档是打开的。因而不需要为输出建立一个新文档。</font></font></p>
          <p style="line-height: 150%"><font size="3"><font face="System,??" lang="ZH-CN"><img src="Bullet3.gif" width="12" height="12"></font><font face="宋体" lang="ZH-CN"> 在完成对Web文档的写操作后,要使用或调用close()方法来实现对输出流的关闭。</font></font></p>
          <p style="line-height: 150%"><font size="3"><font face="System,??" lang="ZH-CN"><img src="Bullet3.gif" width="12" height="12"></font><font face="宋体" lang="ZH-CN"> 在使用open()来打开一个新流时,可为文档指定一个有效的文档类型,有效文档类型包括text/HTML、text/gif、text/xim、text/plugin等。</font></font></p>
          <p style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3"> </font></p>
        </dir>
      </dir>
      <p style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3"><b>(2)write()、writeln()输出显示。</b></font></p>
      <p style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">该方法主要用来实现在Web页面上显示输出信息。在实际使用中,需注意以下几点:</font></p>
      <dir>
        <dir>
          <p style="line-height: 150%"><font size="3"><font face="System,??" lang="ZH-CN"><img src="Bullet3.gif" width="12" height="12"></font><font face="宋体" lang="ZH-CN"> writeln()与write()唯一不同之处在于在未尾加了一个换符。</font></font></p>
          <p style="line-height: 150%"><font size="3"><font face="System,??" lang="ZH-CN"><img src="Bullet3.gif" width="12" height="12"></font><font face="宋体" lang="ZH-CN"> 为了正常显示其输出信息,必须指明&lt;pre&gt;   
          &lt;/Pre&gt;标记,使之告诉编辑器。</font></font></p>  
          <p style="line-height: 150%"><font size="3"><font face="System,??" lang="ZH-CN"><img src="Bullet3.gif" width="12" height="12"></font><font face="宋体" lang="ZH-CN"> 输出的文档类型,可以由浏览器中的有效的合法文本类型所确定。</font></font></p>  
        </dir>  
      </dir>  
      <p style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">(3)关闭文档流close()</font></p>  
      <dir>  
        <dir>  
          <p style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">在实现多个文档对象中,必须使用close()来关闭一个对象后,才能打开另一个文档对象。</font></p>  
        </dir>  
      </dir>  
      <p style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">(4)清除文档内容clear()</font></p>  
      <dir>  
        <dir>  
          <p style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">使用该方法可清除已经打开文档的内容。</font></p>  
          <p style="line-height: 150%"><b><font face="宋体" lang="ZH-CN" size="3"> </font></b></p>  
        </dir>  
      </dir>  
      <p style="line-height: 150%"><b><font face="宋体" lang="ZH-CN" size="3">二、简单的输入、输出例子</font></b></p>  
      <p style="line-height: 150%"><font face="宋体" lang="ZH-CN" size="3">  在JavaScript中可以非常方便地实现输入输出信息,并与用户进行交互。</font></p>
      <p style="line-height: 150%"><b><font face="宋体" lang="ZH-CN" size="3">1、JavaScript信息的输入</font></b></p>

⌨️ 快捷键说明

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