asp疑问~急!

来源:百度知道 编辑:UC知道 时间:2024/06/14 05:36:50
<%
dim hitme
set mypagecount=server.CreateObject("mswc.pagecounter")mypagecount.pagehit
hitme=mypagecount.hits
response.Write("访问:" &hitme& "次")
%>
第四行这段是什么意思?是不是和第五行重复了?

response.Write("访问:" &hitme& "次")
在网页中输出“访问?次”。
?的次数由变量hitme决定,而变量hitme由hitme=mypagecount.hits赋值。
如果不需要对mypagecount.hits数据进行处理,可以不用定义hitme变量。
删去:
dim hitme
hitme=mypagecount.hits
修改
response.Write("访问:" &hitme& "次")

response.Write("访问:" &mypagecount.hits & "次")