Highlight search terms (select only leaf nodes)

前端 未结 7 899
故里飘歌
故里飘歌 2020-11-30 14:20

I would like to highlight search terms on a page, but not mess with any HTML tags. I was thinking of something like:

$(\'.searchResult *\').each(function()          


        
7条回答
提交回复
热议问题