摘要:
写两个扩展方法,分别实现“得到字符串的字节长度”和“按字节长度截取字符串”的功能。public static class Test { /// <summary> /// 按字节长度截取字符串 /// </summary> /// <param name="str"></param> /// <param name="num">要截取的字节个数</param> /// <returns></returns> public static string SubBy 阅读全文