C#,asp.net去除字符串前后空格,Trim()

用Trim()方法就可以了:

String s = " 去掉空格   ";
s = s.Trim();
posted @   hen  阅读(11366)  评论(0编辑  收藏  举报





点击右上角即可分享
微信分享提示