This commit is contained in:
季圣华
2016-10-30 14:23:49 +08:00
parent b148ed88cd
commit 3d34abebd2
7 changed files with 17138 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
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;
}