Posted in Javascript onDecember 23, 2009
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
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@