1. 首页
  2. 课程学习
  3. .Net
  4. javascript asp教程第十三课--include文件

javascript asp教程第十三课--include文件

上传者: 2021-06-11 05:10:27上传 PDF文件 41.43 KB 热度 12次

Experienced JavaScript programmers know that code reuse is good. Experienced JavaScript programmers also know that JavaScript functions are data types. So, we should be able to store a JavaScript function inside a Session Variable or an Application Variable, right?Unfortunately, no. The way to reuse JavaScript functions across many pages is to use SSI: Server Side Includes. . Look at the code for script13.asp. It calls for an include file via this line: . The date and time are 4/11/2003 10:57:20 AM. The final HTML code looks so nice and simple. You'd never know that the Date() object had been torn down and put back together. Below is the include file.

下载地址
用户评论