数据转换成字符串格式

obj.ToString("#0.0%")//转成百分比,保留一位小数

obj.ToString("#,##0")//转成带千分符的

猜你喜欢

转载自www.cnblogs.com/vsnb/p/11599019.html
今日推荐