String.prototype.replaceCharAt = function(n,c){ return this.substr(0, n)+ c + this.substr(n+1,this.length-1-n); }
Javascript --扩展String实现替换字符串中index处字符,布布扣,bubuko.com
Javascript --扩展String实现替换字符串中index处字符
原文:http://blog.csdn.net/lan_liang/article/details/37109891