且构网

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

使用JS查找并替换文档中的特定文本字符

更新时间:2023-01-15 18:10:31

如何用 @ > $ :

How about this, replacing @ with $:

$("body").children().each(function () {
    $(this).html( $(this).html().replace(/@/g,"$") );
});

http://jsfiddle.net/maximua/jp96C/1/