摘要: 一.replace 全部内容替换、替换全部匹配内容、替换第一个 let string str =“12333” 替换第一个: string end =str.replace(3,"2") 结果:12233 替换全部匹配内容: string end =str.replace(/3/g,"2") “g” 阅读全文
posted @ 2021-06-23 15:03 飞鸟和蝉- 阅读(18) 评论(0) 推荐(0) 编辑