摘要: var test = 'abcdeabcdeabcdddd'; console.log(test.replace('a', '6'));//6bcdeabcdeabcdddd console.log(test.replace(/a/g, '6'));//6bcde6bcde6bcdddd 匹配全文, 阅读全文
posted @ 2020-10-12 15:00 君莫笑·秋 阅读(897) 评论(0) 推荐(0) 编辑