οnkeyup='this.value=this.value.replace(/[^0-9\-]/gi,"")' 转载于:https://www.cnblogs.com/oskyhg/p/6802266.html