日期:2014-05-16 浏览次数:20400 次
<!DOCTYPE HTML> <html> <head> <meta charset="gb2312" /> <title></title> </head> <body> <input onkeyup="this.value = this.value.replace(/[^\dx]/g, '')" /> </body> </html>
------解决方案--------------------
(event.keyCode < 45 || event.keyCode > 57)&&event.keyCode!=88试试