摘要: //从字符串'Is this all there is'中剪去'is': var str='Is this all there is'; var subStr=new RegExp('is');//创建正则表达式对象 var result=str.replace(subStr,"");//把'is'替换为空字符串 console.log(result);//Is th all ... 阅读全文
posted @ 2016-12-11 21:37 cao_zhen 阅读(29895) 评论(0) 推荐(0) 编辑