Style a certain character in a string

前端 未结 4 1361
名媛妹妹
名媛妹妹 2021-01-26 00:37

I want to style a certain character in a string via jQuery, but have no clue how to approach that. I have the following situation



        
4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-26 01:13

    There's a plugin called "Highlight" which will highlight bits of text based on a search string. Plugin here.

    For usage instructions, see this article. (I wrote for Smashing a while ago)

提交回复
热议问题