onkeyup事件只能输入数字,字母,下划线

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

原文地址:https://www.cnblogs.com/tuoxiong/p/6023697.html