在网上查询了好多说用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" --> 可以保留三位小数 也算可以满足需求
AngularJS input number 保留两位小数
最新推荐文章于 2022-12-02 13:20:49 发布