StringBuffer.js

 1 function StringBuffer()
 2 {
 3     this.__strings=new Array();
 4 }
 5 
 6 StringBuffer.prototype.append=function(str)
 7 {
 8     this.__strings.push(str);
 9 }
10 
11 StringBuffer.prototype.toString=function()
12 {
13     return this.__strings.join("");
14 }
posted @ 2008-04-12 12:04  落叶潇潇雨  阅读(317)  评论(0编辑  收藏  举报