阅读背景:

如何将输入数限制为非小数

来源:互联网 

I have a number input on a page, and I want it restricted to whole number values, no decimals. I am using forms and angularjs for validation. What do I have to do to make decimals not allowed? I tried setting step to 1, but this changed nothing. Many other issues discuss getting browsers to support decimals - I seem to be having the opposite problem.I have a number input on a page, and I want it




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: