AngularJS input number 保留两位小数

来源:互联网 发布:cmd命令查看端口号 编辑:程序博客网 时间:2024/06/04 08:58
在网上查询了好多说用step="0.01" 不能够满足ng-model 绑定的值 后来找到了currency-format="number"    <input class="form-control tbfi tbfi-double" type="text" ng-model="quotnObject.quotnInfo.InterestTotal" currency-format="number"  ng-readonly="true" /> <!-- type="number" step="0.01"  --> 可以保留三位小数 也算可以满足需求
0 0
原创粉丝点击