简单正则替换
var rega=new RegExp(" ","g"); //創建正則RegExp對象
ntrstr=ntrstr.replace(rega,"");
var regb=new RegExp(" ","g"); //創建正則RegExp對象
ntrstr=ntrstr.replace(regb,"");
var regc=new RegExp(" ","g"); //創建正則RegExp對象
ntrstr=ntrstr.replace(regc,"");
轉載于:https://www.cnblogs.com/keringing/p/6128870.html
總結
- 上一篇: 手机CAD如何快速看图下载?
- 下一篇: Failed to resolve: a