Skip to content

Instantly share code, notes, and snippets.

@GeekaholicLin
Created July 17, 2016 07:59
Show Gist options
  • Save GeekaholicLin/7831c2a65478178b3412de068dad6725 to your computer and use it in GitHub Desktop.
Save GeekaholicLin/7831c2a65478178b3412de068dad6725 to your computer and use it in GitHub Desktop.
动态网页、静态网页、动态文档、静态文档和活动文档的区别

动态网页和静态网页是对于用户(client)是否和服务器进行(server)交互而言。常见的静态网页是以.html.htm后缀名结尾的,而动态网页常见的有 以.aspx,.jsp,.php结尾,一般情况下需要与数据库打交道。

而动态文档、静态文档和活动文档与动态网页、静态网页没有必然的联系。(虽然有一点关系,比如静态网页属于静态文档的一种,但纯文档,比如Json和文本文件也属于静态文档),它们的划分依据并不一样。

  • 动态文档指的是,在用户对服务器进行请求,服务器的程序根据请求进行处理,创建动态文档返回服务器。(内容一旦在服务器创建返回则不会再改变)[program at the server creates a document and sends it to client.]
  • 静态文档指的是,在用户请求的时候,直接将请求的静态文档返回。(内容不会改变)[same file sent every request.]
  • 活动文档指的是,服务器返回程序文件副本,让浏览器来根据用户的请求进行变化。比如Java Applet。提供了从浏览器界面访问这些应用程序的功能的方法。只要用户运行活动文档程序,活动文档的内容就可以连续的改变。[ program sent from server and run on the client]

"A dynamic document is the product of a program run by a server as requested by a browser. An active document is the product of a program sent from the server to the client and run at the client site."

活动文档在早期的时候主要是Java Applet撑起一片天,如今主要是JavaSscript和Windows的ActiveX

Mainly refer to the link :

http://williams.comp.ncat.edu/COMP476/ActiveDocuments.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment