MVC 视图页对数字,金额 用逗号 隔开(数字格式化)
2024-10-19 06:26:20
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>
最新文章
- mysql索引 (校验规则引发的血案)
- Codeforces Round #270 1001
- C#面向对象整理
- HTML5实现下载文件且指定下载文件名
- Atitit. 提升软件开发效率and 开发质量---java 实现dsl 4gl 的本质and 精髓 O725
- Python的sched模块
- response 后刷新页面,点击按钮后,禁用该按钮
- ES6-个人学习笔记一--let和const
- Tree of Life (easy)
- android studio 2.3 下载地址
- Linux目录结构介绍-http://yangrong.blog.51cto.com/6945369/1288072
- 创建Maven项目时提示web.xml is missing and <;failOnMissingWebXml>; is set to true错误解决方案
- MySql 动态语句
- js数组之sort排序的用法
- ansible批量免秘登录
- 01 python初学(注释、交互、if while for)
- OpenGL ES 3.0之VertexAttributes,Vertex Arrays,and Buffer Objects(九)
- serializers 序列化器里面进行 校验等
- Openstack入门篇(十)之nova服务(计算节点)的部署与测试
- oracle查锁表