评论者ip最后一位用*隐去方法

        string str="127.0.0.1";
        str = str.Substring(0, str.LastIndexOf(".")+1);
        Response.Write(str + "*");
原文地址:https://www.cnblogs.com/ma_x/p/2292897.html