asp吧+ 关注 关注: 帖子:16

  

ASP判断当前目录是否是根目录,添加返回按钮

  • 枫之精英

    <%

    dim restr,path,path0

    restr="index.asp"

    path=replace(replace(server.mappath(restr),server.mappath("/"),""),restr,"")

    path0=replace(path,"\","")

    %>

    <%if path0<>"" then%>

    <a rel="home" href="/">返回首页</a>

    <%end if%>


    1楼  2019/7/3 16:02:46  回复

  发表回复

    发帖