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