08 2023 档案
js replace方法 (字典表匹配替换字符)
摘要:常规replace使用 const text1 = 'abcdefg' const text2 = text1.replace('bc','00') // text2 = 'a00defg' 字典表匹配替换 const replacements = { '<': '<', '>': '>
阅读全文