- 2025年05月12日
- 星期一
用法:1.Server.MapPath(/) 应用程序根目录所在的位置 如 C:Inetpubwwwroot2.Server.MapPath(./) 表示所在页面的当前目录 注:等价于Server.MapPath() 返回 Server.MapPath()所在页面的物理文件路径3.Server.MapPath(../)表示上一级目录4.Server.MapPath(~/)
用法:1.Server.MapPath(/) 应用程序根目录所在的位置 如 C:Inetpubwwwroot2.Server.MapPath(./) 表示所在页面的当前目录 注:等价于Server.MapPath() 返回 Server.MapPath()所在页面的物理文件路径3.Server.MapPath(../)表示上一级目录4.Server.MapPath(~/)