html input 只允许数字

oninput="value=value.replace(/[^\d]/g,'')"

猜你喜欢

转载自www.cnblogs.com/wlgclining/p/10777344.html