有一个字段:
<div id="div_montant_src_financement" class="form-group col-sm-12">
<label class="col-sm-3 control-label">Prévu</label>
<form:input path="prevu" cssClass="form-control input_text numeric" placeholder="Budget prévu" />
</div>
css :
.form-control {
border-color: #729aea !important;
font-size: inherit !important;
border-radius: 8px !important;
}
.form-control:focus {
border-color: #0a0aaf !important;
}
.form-control:not(textarea):not([multiple]) {
height: 28px !important;
}
.input_text {
width: 66.66666667% !important;
}
查询:
$('.numeric').on("keyup",function () {
if (this.value != this.value.replace(/[^0-9\.]/g, '')) {
this.value = this.value.replace(/[^0-9\.]/g, '');
}
});
$('.numeric').css("text-align","right");
在运行时,该字段由数据库中的列数据填充;它有一个值 15000000 但渲染的数据不是我想要的:
那么如何在没有科学记数法的情况下显示所有值呢?
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句