小智 44
您可以尝试此格式,并使用自定义值替换金额.
@string.Format("{0:C}", amount);
Run Code Online (Sandbox Code Playgroud)
小智 12
您可以在模型中添加它,只要您引用该字段,就会显示货币符号
[DisplayFormat(DataFormatString = "{0:C}", ApplyFormatInEditMode = true)]
public decimal DebitAmount { get; set; }
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
32021 次 |
| 最近记录: |