οnkeyup="(this.v=function(){this.value=this.value.replace(/\-/g,\'\');}).call(this)"
示例:
转载于:https://www.cnblogs.com/JentZhang/p/10714971.html