摘要: 去掉带左右尖括号的标签 string.replace(/<[^>]+>/g, ""); 去空格 string.replace(/(^\s*)|(\s*$)/g, ''); //去掉首尾空格 string.replace(/\s+/g, ""); //去掉所有空格 string.replace(/(^ 阅读全文
posted @ 2020-05-18 10:58 维维WW 阅读(250) 评论(0) 推荐(0)