input 输入是不是数字内容清空

<input type="text" name="" oninput="value=value.replace(/[^\d]/g,'')">
posted @ 2022-11-05 15:16  林夕聪  阅读(70)  评论(0)    收藏  举报