ASP.NET(C#)的货币格式化

xiaoxiao2022-06-12  18

1.ToString()方式 string _mm1= 1000.ToString("N"); string _mm2= (1000.23).ToString("N"); 或者 string _mm= 1000.ToString("#,###.00") string _mm2= (1000.23).ToString("#,###.00") 2.页面绑定 <asp:BoundField DataField="Total" DataFormatString="{0:#,###}" HtmlEncode="False" /> 相关资源:Java 面经手册·小傅哥(公众号:bugstack虫洞栈).pdf
转载请注明原文地址: https://www.6miu.com/read-4933869.html

最新回复(0)