mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 11:26:47 +08:00
提交
This commit is contained in:
2
main.js
2
main.js
@@ -13,7 +13,7 @@ Vue.prototype.$keywordActiveShow=function(str,keyword){
|
||||
if(!str||str.indexOf(keyword)===-1||keyword==''){
|
||||
return str
|
||||
}
|
||||
return str.replace(keyword,`<span style="color:#FF8E00">${keyword}</span>`)
|
||||
return str.replace(keyword,`<span style="color:#387DF7 ">${keyword}</span>`)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user