在一个ASP页面停留的多少时间的程序

2018-09-06 12:01

阅读:323

  ASP Source Code:


----------------------------------------------------------------------
<% If Request.QueryString(time) = Then %>

<% Else %>
You spent <%= DateDiff(s, Request.QueryString(time), Now()) %>

<% End If %>

How long have I


This script passes the time in a QueryString parameter. You could
just as
easily store it in a session variable, log it to a database, or write
it to
a text file. It all depends upon what you intend to use the
information
for.

----------------------------------------------------------------------


ASP Source Code:


----------------------------------------------------------------------


<% If Request.QueryString(time) = Then %>

<% Else %>
You spent <%= DateDiff(s, Request.QueryString(time), Now()) %>

<% End If %>

How long have I


This script passes the time in a QueryString parameter. You could
just as
easily store it in a session variable, log it to a database, or write
it to
a text file. It all depends upon what you intend to use the
information
for.


评论


亲,登录后才可以留言!