国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

asp中將相對路徑轉換為絕對路徑的函數代碼

2020-07-27 12:48:22
字體:
來源:轉載
供稿:網友
復制代碼 代碼如下:

'================================================
' 函數名:ChkMapPath
' 作 用:相對路徑轉換為絕對路徑
' 參 數:strPath ----原路徑
' 返回值:絕對路徑
'================================================
Function ChkMapPath(ByVal strPath)
Dim fullPath
strPath = Replace(Replace(Trim(strPath), "/", "/"), "http://", "/")

If strPath = "" Then strPath = "."
If InStr(strPath,":/") = 0 Then
fullPath = Server.MapPath(strPath)
Else
strPath = Replace(strPath,"../","")
fullPath = Trim(strPath)
If Right(fullPath, 1) = "/" Then
fullPath = Left(fullPath, Len(fullPath) - 1)
End If
End If
ChkMapPath = fullPath
End Function
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 泰来县| 临朐县| 称多县| 凤城市| 沙田区| 侯马市| 沿河| 万宁市| 新巴尔虎左旗| 鱼台县| 连城县| 广水市| 莎车县| 赤城县| 突泉县| 牙克石市| 鸡泽县| 嘉义县| 伊宁县| 新田县| 德化县| 武定县| 象州县| 宜兰县| 白银市| 山东| 绍兴县| 昆山市| 南开区| 鸡泽县| 炉霍县| 隆安县| 松溪县| 南郑县| 璧山县| 镇江市| 宁津县| 鄂州市| 河东区| 偏关县| 民县|