Replace word in

in

using jquery

前端 未结 8 1800
无人及你
无人及你 2021-01-18 11:54

I have a document with the following structure:

This is some text.

8条回答
  •  别那么骄傲
    2021-01-18 12:53

    Try this, sure you will get your result.

    $("#notice p").text(function(i, text) {
        return text.replace("some", "My");
    });
    

提交回复
热议问题