<div v-html="TitleLight(vo.goods_name)"></div>
TitleLight:function(titleInfo) {
const strReturn = titleInfo.replace(new RegExp(vm.keywords, 'g'), `<span class="highlight">${vm.keywords}</span>`)
return strReturn
},
2023-11-10 17:27:04
<div v-html="TitleLight(vo.goods_name)"></div>
TitleLight:function(titleInfo) {
const strReturn = titleInfo.replace(new RegExp(vm.keywords, 'g'), `<span class="highlight">${vm.keywords}</span>`)
return strReturn
},
下一篇:实现元素居中显示