obj.replace()

Object.prototype.replace = function(names,name) {
that=this[name];
delete this[name];
this[names]=that;
return this
};

posted @ 2016-06-23 19:36  穆克拉的大表哥  阅读(287)  评论(0编辑  收藏  举报