javascript - Regarding the problem that decimal points cannot be entered in the number file box.
高洛峰
高洛峰 2017-05-19 10:09:40
0
1
423

<input class="form-control" type="number" min="0" name="item.StartIncome" ng-model="itemPhase.StartIncome"/>
, using angularjs In the framework, after inputting a decimal point, delete the decimal point and keep it to the one digit, and then add a decimal point, but it will fail to be added. I wonder if you have encountered this problem. How did you solve it?

1. Enter a value with decimal point, you can enter;

2. The decimal point cannot be entered after backspacing to the ones place

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
大家讲道理

There may be compatibility issues with number. Can’t we just use ordinary input to control functions like this with js

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template