您的位置:首页 > Web前端 > AngularJS

AngularJS input number 保留两位小数

2016-05-31 10:45 579 查看
在网上查询了好多说用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" 
--> 可以保留三位小数 也算可以满足需求
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: