> 其他 >
关于Trim()
string UserName = txtUserName.Text;和
string UserName = txtUserName.Text.Trim();它们之间的却别是什么?
我分不清这两种的用法
人气:202 ℃ 时间:2020-04-23 10:37:26
解答
txtUserName.Text.Trim();去掉了txtUserName.Text左右两边的空格字符.
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版