日期:2014-05-17  浏览次数:20792 次

asp如何隐去IP后几位
如题↑   :   210.35.*.*

------解决方案--------------------
arr=split(strIP, ". ")

lastIP = arr(0) & ". "&arr(1)& ".*.* "
------解决方案--------------------
写个小函数,按“.”来分组,取数组的前两组,然后加上“.*.*”。
------解决方案--------------------
Function MyIP(strIP)
My = Split(strIP, ". ")
if ubound(my)=3 then
MyIP=My(0)& ". "&My(1)& "*.* "
else
MYip= "IP出错 "
end if
End Function

-----------------------------------
http://www.jw112.com