我想将用户的输入限制为纯数字和具有3个小数位的数字。我想在jQuery
您可以将step属性与<input type="number">一起使用。
step
<input type="number">
<input type="number" step="0.001" >
阅读更多here.