angular.js - The ng-repeat directive in angularjs loops out 10 input tags. How to limit the input to only numbers?
伊谢尔伦
伊谢尔伦 2017-05-15 17:02:22
0
2
847

As the title says, limit the input to only numbers, and finally get the values ​​of all inputs

<p ng-repeat='item in data'>
    <input type='text' value='{{item.name}}'>
</p>

My original method was to use native javascript to operate. Although it can also solve the problem, it is not ideal. I am looking for some ideas

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
習慣沉默

directive

Peter_Zhu
<p ng-repeat='item in data'>
    <input type='number' ng-model='item.name'>
</p>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template