字符串方法 replace() replace() 详解 例如: 将原字符串 "http://www.baidu.com/" 输出为 "http://www.baidu.com" 代码: "http://www.baidu.com/".replace("com/","com");