简单来说就是实现全文本替换,符合要求的全部替换
let searchRegExp = new RegExp(item.word,"g"); //即将要被替换的字符串
let replaceWith = `<span style="color:red;" class='wrong' id='A${item.start}'>${item.word}</span>`//替换的字符串
this.content = this.content.replace(searchRegExp, replaceWith)//执行替换