博客园  :: 首页  :: 新随笔  :: 联系 :: 管理

2012年9月29日

摘要: /** 在字符串末尾追加字符串 **/String.prototype.append = function (str) { return this.concat(str);}/** 删除指定索引位置的字符,索引无效将不删除任何字符 **/String.prototype.deleteCharAt = function (index) { if (index < 0 || index >= this.length) { return this.valueOf(); } else if (index == 0) { return this.sub... 阅读全文

posted @ 2012-09-29 21:23 匆匆 阅读(2677) 评论(1) 推荐(0) 编辑