ZhaoWeiNotes
<input type="text" placeholder="" onafterpaste="this.value=this.value.replace(/,/g,\',\')" onkeyup="this.value=this.value.replace(/,/g,\',\')">

  在input中加入   onafterpaste="this.value=this.value.replace(/,/g,\',\')" onkeyup="this.value=this.value.replace(/,/g,\',\')"      就可以轻松实现了

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-07
  • 2021-09-07
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案