有。 str.replace(str1, str2); 具体语法可以参考: http://www.purewhite.cn/library/manuals/2000/javascript/1.5/reference/string.html#1194258