How to Find text and replace using jQuery

前端 未结 3 1590
迷失自我
迷失自我 2020-12-30 16:49

Im trying to find a solution to search for a text string \"Tony\" contained in the DOM and replace it with a text String \"Tiger\".

Anyone have any insight or ideas

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-30 17:03

    Is it possible to couple this with a server-side solution? You could wrap every occurence of the word server side with a special class, like texttoreplace.

    Running a javascript replace on the resulting classes only should speed things up.

提交回复
热议问题