input只能输入正整数

<input type='text' class="layui-input" autocomplete="off" onkeyup="value=value.replace(/[^\d]/g,'')" id="logSize" name="logSize">

 

posted @ 2023-06-05 14:55  丙炎  阅读(304)  评论(0)    收藏  举报