摘要:/** 在字符串末尾追加字符串 **/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