function StringBuffer(str)
{
var arr = [];
str = str || "";
arr.push(str);
this.append = function(str1)
{
arr.push(str1);
return this;
};
this.toString = function()
{
return arr.join("");
};
};

document.onreadystatechange = function(){
if(document.readyState == "complete")
{
var sb = new StringBuffer();
sb.append("Hello,").append("World");
alert(sb.toString());
}
};

最新文章

  1. 通过xib加载textfield的时候 发生 this class is not key value coding-compliant for the key textField. 情况怎么解决
  2. 五、python使用模块
  3. cocos2d-x简单动画
  4. WebService开发步骤
  5. cxSplitter.HotZone 怎么给分隔条增加值
  6. #include <boost/asio.hpp>
  7. 多项目中SVN权限管理精辟解析
  8. C语言程序内存布局
  9. Illegal invocation with document.querySelector [duplicate]
  10. mysql5.7 pxc
  11. h264_rtp打包解包类及实现demo
  12. 天了噜,Java 8 要停止维护了!
  13. python学习笔记九——序列
  14. Latex 三线表及设置列数
  15. Kafka.net使用编程入门(二)
  16. Web安全颜色
  17. Dubbo -- 系统学习 笔记 -- 配置
  18. jquey XMLHttpRequest cannot load url.Origin null is not allowed by Access-Control-Allow-Origin
  19. Java基础-MySQL数据库扫盲篇
  20. Effective C++(9) 构造函数调用virtual函数会发生什么

热门文章

  1. poj 1390 Blocks (记忆化搜索)
  2. https://github.com/Boris-Em/BEMCheckBox
  3. LCT教程
  4. 洛谷P2744 [USACO5.3]量取牛奶Milk Measuring
  5. codeforces round #416 div2
  6. 设计模式(二):单例模式(DCL及解决办法)
  7. createrepo
  8. oracle 分页方法
  9. eclipse下整合springboot和mybatis
  10. HTML--使用单选框、复选框,让用户选择