摘要: 今天有个要正则匹配替换的需求。 把 博客园大学 ==> *** 大学 1、这种星号是动态的。 const str = "普林斯顿大学"; const len = str.length; let newStr = ""; for (let i = 0; i < len - 2; i++) { newS 阅读全文
posted @ 2020-04-28 17:33 云霄紫潭 阅读(184) 评论(0) 推荐(0) 编辑