摘要: 需求1:将字符串" hello " 转换成 " he--o "(将字符串中 " l " 转换成 " - " ) var str = "hello"; var newStr = str.replace(/l/g,"-"); console.log(newStr) 需求2:将字符串" hello " 中 阅读全文
posted @ 2020-09-28 15:21 宸晓闹儿06 阅读(1398) 评论(0) 推荐(0) 编辑