[removed] find strings in dom and emphasize it

后端 未结 3 1012
野趣味
野趣味 2020-12-15 12:49

i want a function that finds some strings i\'ve got in an array in the DOM and emphasize it.

eg.

keywords[0] = \'linux\';
keywords[1] = \'suse pro\';         


        
3条回答
  •  感情败类
    2020-12-15 13:34

    there's a jquery plugin that does this: http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html

提交回复
热议问题