码迷,mamicode.com
首页 > Web开发 > 详细

MVC 视图页对数字,金额 用逗号 隔开(数字格式化)

时间:2018-01-10 16:58:05      阅读:213      评论:0      收藏:0      [点我收藏+]

标签:代码   rem   for   log   blog   inf   视图   ali   pre   

技术分享图片

cshtml页面代码:

 <tr>
            <th>@Model.BankName</th>
            <th>@Model.Month</th>
            <th>@Html.Label("", String.Format("{0:N0}", Model.LoanApplyCount),new { @class = "numbers-conversion-value" })</th>
            <th>@Html.Label("", String.Format("{0:N2}", Model.LoanTotalFee), new { @class = "numbers-conversion-value" })</th>
            <th>@Model.GuoPaiRate</th>
            <th>@Html.Label("", String.Format("{0:N2}", Model.FormalitiesFee), new { @class = "numbers-conversion-value" })</th>
            <th>@Html.Label("", String.Format("{0:N2}", Model.OperationFee), new { @class = "numbers-conversion-value" })</th>
            <th>@Html.Label("", String.Format("{0:N2}", Model.IncomeFee), new { @class = "numbers-conversion-value" })</th>
            <th>@Model.Remarks</th>
        </tr>
        <tr>
            <th>总计</th>
            <th></th>
            <th>@Html.Label("", String.Format("{0:N0}", Model.LoanApplyCount), new { @class = "numbers-conversion-value" })</th>
            <th>@Html.Label("", String.Format("{0:N2}", Model.LoanTotalFee), new { @class = "numbers-conversion-value" })</th>
            <th></th>
            <th>@Html.Label("", String.Format("{0:N2}", Model.FormalitiesFee), new { @class = "numbers-conversion-value" })</th>
            <th>@Html.Label("", String.Format("{0:N2}", Model.OperationFee), new { @class = "numbers-conversion-value" })</th>
            <th>@Html.Label("", String.Format("{0:N2}", Model.IncomeFee), new { @class = "numbers-conversion-value" })</th>
            <th></th>
        </tr>

 

MVC 视图页对数字,金额 用逗号 隔开(数字格式化)

标签:代码   rem   for   log   blog   inf   视图   ali   pre   

原文地址:https://www.cnblogs.com/yechangzhong-826217795/p/8259046.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!