Javascript String replaceAll(org, tag)

Description

Javascript String replaceAll(org, tag)


String.prototype.replaceAll = function(org, tag){
 return this.replace(new RegExp(org, 'g'), tag);
};



PreviousNext

Related