ASP.NET AJAX MSSQL MYSQL 技术交流区

Bullion技术交流BLOG

博客园 首页 新随笔 联系 订阅 管理

2008年6月10日 #

摘要: 截取字付串 public static string GetString(string str, int length ) { int i = 0, j = 0; foreach (char chr in str) { if ((int)chr >30) { i += 2; } else { i++; } if (i > length) { str = str.Substring(0,... 阅读全文
posted @ 2008-06-10 18:17 bullion 阅读(720) 评论(0) 推荐(0) 编辑