摘要:
/** 删除数组中指定索引的数据 **/Array.prototype.deleteAt = function (index) { if (index 0) { t = Math.floor(Math.random() * me.length); tempArr[... 阅读全文
posted @ 2015-01-07 14:04
microsoftzhcn
阅读(505)
评论(0)
推荐(0)
摘要:
/** 在字符串末尾追加字符串 **/String.prototype.append = function (str) { return this.concat(str);}/** 删除指定索引位置的字符,索引无效将不删除任何字符 **/String.prototype.deleteCharA... 阅读全文
posted @ 2015-01-07 14:02
microsoftzhcn
阅读(972)
评论(0)
推荐(1)
摘要:
//js格式化时间//"yyyy-MM-dd hh:mm:ss"Date.prototype.format = function (format) { var date = { "M+": this.getMonth() + 1, "d+": this.getDat... 阅读全文
posted @ 2015-01-07 11:51
microsoftzhcn
阅读(770)
评论(0)
推荐(0)

浙公网安备 33010602011771号