public static string SubStr(string sString, int nLength)
    {
        if (sString.Length <= nLength)
        {
            return sString;
        }
        string newStr = sString.Substring(0,nLength);
        newStr = newStr + "...";
        return newStr;
    }

 

相关文章:

  • 2022-03-04
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2021-06-19
猜你喜欢
  • 2021-06-24
  • 2022-12-23
  • 2021-06-14
  • 2021-05-17
  • 2021-05-29
  • 2022-12-23
相关资源
相似解决方案