给input加step,精确到几位小数就加几位
// 精确4位小数
<input type='number' step="0.0001"/>
//精确2位小数
<input type='number' step="0.01"/>
给input加step,精确到几位小数就加几位
// 精确4位小数
<input type='number' step="0.0001"/>
//精确2位小数
<input type='number' step="0.01"/>
本文标题:在火狐中input设置为number类型时,输入小数会提示错误
本文链接:https://www.haomeiwen.com/subject/hwijbktx.html
网友评论