字符串过长替换String s="这里有100个字符";要怎么替换成:String newS="上面100个字符的前80个字符"+"...";//就是后面20个字符用三个...替换掉代码 谢谢 [解决办法]newS = s.substring(0,80)+'...';