onKeyUp="this.value=this.value.replace(//D/g,'')"
onafterpaste="this.value=this.value.replace(//D/g,'')"
onKeyUp="this.value=this.value.replace(//D/g,'')"
onafterpaste="this.value=this.value.replace(//D/g,'')"
转载于:https://www.cnblogs.com/xffy1028/archive/2011/02/19/2344337.html