search

Home  >  Q&A  >  body text

javascript - Regarding the problem that decimal points cannot be entered in the number file box.

<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

高洛峰高洛峰2787 days ago450

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-05-19 10:11:40

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

    reply
    0
  • Cancelreply