08-08
14
StringBuffer清空
作者:Java伴侣 日期:2008-08-14
今天在做面包屑导航时,发现目录叠加显示:
Action:
StringBuffer sb = new StringBuffer();
execute{
...
String msg = this.checkParent(catalog);
sb.delete(0, sb.length());
}
public msg checkParent(catalog){
...
if(!=null)
sb.append("");
//递归
return this.checkParent(catalog);
}
Action:
StringBuffer sb = new StringBuffer();
execute{
...
String msg = this.checkParent(catalog);
sb.delete(0, sb.length());
}
public msg checkParent(catalog){
...
if(!=null)
sb.append("");
//递归
return this.checkParent(catalog);
}
评论: 0 | 引用: 0 | 查看次数: 1410
发表评论