Highlighting text in document (JavaScript) Efficiently

后端 未结 3 1082
不思量自难忘°
不思量自难忘° 2020-12-20 07:50

How can I (efficiently - not slowing the computer [cpu]) highlight a specific part of a page?

Lets say that my page is as so:

         


        
3条回答
  •  独厮守ぢ
    2020-12-20 08:39

    Use this in combination with this and you should be pretty ok. (It is almost better than trying to implement selection / selection-highlighting logic yourself.)

提交回复
热议问题