onkeyup="(this.v=function(){this.value=this.value.replace(/\-/g,\'\');}).call(this)"

 

 

示例:

<input type="number" onkeyup="(this.v=function(){this.value=this.value.replace(/-/g,'');}).call(this)">

 

相关文章:

  • 2021-08-02
  • 2022-12-23
  • 2021-11-18
  • 2021-07-14
  • 2021-11-18
  • 2022-12-23
  • 2022-02-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
相关资源
相似解决方案