#region 字符串位数截断
public string strCa(string Str,int I)
{
string ReStr = Str;
if(!(Str==""||Str==null))
{
if (Str.Length > I) ReStr = Str.Substring(0, I);
ReStr = ReStr.Replace("'", "");
}
return ReStr;
}
#endregion
C# 字符串位数截断
最新推荐文章于 2021-01-26 18:32:55 发布