25岁以后用什么眼霜:ASP怎样获得当前网址?
来源:百度文库 编辑:神马品牌网 时间:2024/05/23 16:31:48
ASP怎样获得当前网址?
<%
response.write "http://"&Request.ServerVariables("server_name")&Request.ServerVariables("script_name")
%>
用JAVASCRIPT,location.href就是当前网址
<%
response.write "http://"&Request.ServerVariables("server_name")&Request.ServerVariables("script_name")
%>
用JAVASCRIPT,location.href就是当前网址