function StringBuffer() {
this.array = new Array();
}

StringBuffer.prototype.append = function(value) {
this.array[this.array.length] = value;
return this;
}

StringBuffer.prototype.toString = function() {
var _string = this.array.join("");
return _string;
}

以上就是【js 效率组装字符串 StringBuffer】的全部内容了,欢迎留言评论进行交流!

赞(0) 踩(0)

与本文相关的软件

发表我的评论

最新评论

  1. 暂无评论