首页 > 应用开发 > IT综合 > 输入筐的数字,字母和汉字等等约束的正则
<input onkeyup="this.value=this.value.replace(/D/g,'')" onafterpaste="this.value=this.value.replace(/D/g,'')">
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7192349/viewspace-926956/ ,如需转载,请注明出处,否则将追究法律责任。