prototype版的javascript StringBuffer类
来源:互联网 发布:链接买卖源码 编辑:程序博客网 时间:2024/05/15 23:49
var StringBuffer = Class.create();
StringBuffer.prototype = {
initialize : function (string) {
this._strings = [];
this.append(string);
},
append : function (string) {
if (string != undefined) {
this._strings.push(string);
}
return this;
},
toString : function (separator) {
return this._strings.join(separator || "");
}
}
StringBuffer.prototype = {
initialize : function (string) {
this._strings = [];
this.append(string);
},
append : function (string) {
if (string != undefined) {
this._strings.push(string);
}
return this;
},
toString : function (separator) {
return this._strings.join(separator || "");
}
}
前提是要引用prototype包
- prototype版的javascript StringBuffer类
- JavaScript的Prototype使用
- JavaScript的prototype是什么
- javascript的prototype继承
- JavaScript的Prototype对象
- javascript的prototype继承
- javascript的prototype
- javascript的prototype属性
- javascript的prototype
- JavaScript prototype的体会
- javascript的prototype
- JavaScript的Prototype实现
- javascript的prototype继承
- 关于javascript的prototype
- javascript的prototype继承
- Javascript的prototype
- javascript的prototype继承
- javascript 的prototype
- Delphi程序设计之--惯用法
- Myeclipse6.0的注册码
- 群发送邮件类
- 不要再来伤害我
- Java编码规范(部分)
- prototype版的javascript StringBuffer类
- 提高SQL执行效率的几点建议
- 网页中实现Flash透明的两种方法
- 小对象的分配技术(2/4)
- java集合解析
- oracle_sql性能优化
- Linux下的摄相头驱动
- java 接口的使用
- Base64编码/解码VB6超精简版(适用于中、英文)