控制input框输入非数字

<input type="text" onkeyup="value=value.replace(/[^\d.]/g,'')">

猜你喜欢

转载自www.cnblogs.com/muou2125/p/9542636.html