if ('undefined' != typeof(StringBuffer)) {
StringBuffer = {};
}


StringBuffer = function(str) {
this._aString = [];
if ('undefined' != typeof(str)) {
  this.append(str);
}
};


StringBuffer.prototype.append = function(str) {
    this._aString.push(str);
    return this;
};


StringBuffer.prototype.toString = function() {
    return this._aString.join('');
};


StringBuffer.prototype.setLength = function(nLen) {
    if('undefined' == typeof(nLen) || 0 >= nLen) {
     this._aString.length = 0;
    } else {
     this._aString.length = nLen;
    }
};



'개발 > JQUERY' 카테고리의 다른 글

jquery 한글 영어 숫자 체크  (0) 2017.03.17
jquery datatable 컬럼 동적생성  (0) 2017.03.17
jquery datatable 테이블  (0) 2017.03.16
제이쿼리(Jquery) 파라메터 가져오기  (0) 2017.03.15
Jquery 한글 영어 체크하기  (0) 2017.03.13

+ Recent posts