转载:https://www.cnblogs.com/luodengxiong/p/12391862.html
<div>
<p>123</p>
</div>
$("p:contains('123')").html($("p:contains('123')").html().replace('123', "56789"));
转载:https://www.cnblogs.com/luodengxiong/p/12391862.html
<div>
<p>123</p>
</div>
$("p:contains('123')").html($("p:contains('123')").html().replace('123', "56789"));
本文标题:jquery :contains 查找指定字符串元素
本文链接:https://www.haomeiwen.com/subject/syoxqktx.html
网友评论