Js的StringBuffer

function StringBuffer(){

    this._strings_ = new Array();

}

StringBuffer.prototype.append = function(str){

    this._strings_.push(str);

}

StringBuffer.prototype.toString = function(){

   this._strings_.join(""); 

}

原文地址:https://www.cnblogs.com/ai3xiaoyi/p/3587139.html