provinceCode = provinceCode.indexOf("|") != -1 ? provinceCode : provinceCode.substring(0, 2) + "|" + provinceCode.substring(2, provinceCode.length());
//只替换一次
StringUtils.replaceOnece("abcabcabc","a","1");——>输出结果1bcabcabc
//全部替换
StringUtils.replace("abcabcabc","a","1");——>输出结果1bc1bc1bc
//限制替换次数
StringUtils.replace("abcabcabc","a","1",1);——>输出结果1bcabcabc
新闻热点
疑难解答