Angular4_格式化金钱或者重量
发布时间:2020-12-17 08:30:49 所属栏目:安全 来源:网络整理
导读:| number:'1.2-2' td {{item.weight| number:'1.2-2'}} / td 效果: 官网文档: DecimalPipe PIPE npm Package @angular/common Module import {DecimalPipe} from'@angular/common'; Source common/src/pipes/number_pipe.ts NgModule CommonModule Formats
| number:'1.2-2'
<
td
>{{item.weight| number:'1.2-2'}}
</
td
>
效果:
官网文档:
DecimalPipe
How To Use
Formats a number as text. Group sizing and separator and other locale-specific configurations are based on the active locale. where
For more information on the acceptable range for each of these numbers and other details see your native internationalization library. Example
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |