问:<!--#include file="head.asp"-->这个是什么意思?
答:
就是本程序中包含“head.asp”程序。
------------------------------------
head.asp可以是一段代码,或者是一个函数程序。
如果是代码,就在需要的地方写入:
<!--#include file="head.asp"-->
那么,在这个位置就会执行:head.asp程序。
如果是函数程序,那么在本程序中就可以调用head.asp中的函数。
通常在写一个页面时,设计一个页面头(head.asp),一个尾(foot.asp),中间(main.asp)是要更改的主体。结构:
head.asp
+
main.asp
+
foot.asp
通常以main.asp为主程序,在main.asp中写成:
<body>
<!--#include file="head.asp"-->
.........
..........
<!--#include file="foot.asp"-->
</body>
该回答在5月2日 14:49由回答者修改过