摘要: const keyword = '关键字'; let str = '把关键字换成蓝色'; const reg = new RegExp(`${keyword}`, 'g'); str = str.replace(reg, `<span style='color: #1B73E8;'>${keywor 阅读全文
posted @ 2021-08-31 15:55 桃李子 阅读(795) 评论(0) 推荐(0) 编辑