摘要:
match对字符串执行查找,并将包含查找的结果作为数组返回。str.match(/\(\d{10,12}\)/g)[0].replace(/\(|\)/g,"")replace行文字替换后的字符串的复制//去掉所有空格str='啊,b,cdefgh不';varre=newRegExp('\\s+','g');str=str.replace(re,'');//str=str.replace(/\s/... 阅读全文
花生鱼's Blog
■╪ 加快奋斗的脚步 |
|
|