且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

替换dom元素中的所有字符串

更新时间:2022-03-31 04:15:45

strings = $('#risposta-campione').html();
strings = strings.replace(/0000/g,"hello");

这会将0000的所有出现替换为hello.

this will replace all the occurance of 0000 to hello.