sherryweb


元素.val().replace(/\ +/g,"");//去掉空格

.replace(/\ +/g,"") //去掉空格方法


元素.text().replace(/[ ]/g,"");    //去掉空格

.replace(/[ ]/g,"")//去掉空格


元素.val().replace(/[\r\n]/g,"");//去掉回车换行

.replace(/[\r\n]/g,"")//去掉回车换行

 

.replace(/-/g, \'\') //去掉"-"号

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2021-12-17
  • 2022-02-04
  • 2021-07-17
相关资源
相似解决方案