Skip to content

Instantly share code, notes, and snippets.

@naosim
Created July 13, 2014 00:39
Show Gist options
  • Save naosim/d2fd4df765869bbbcd72 to your computer and use it in GitHub Desktop.
Save naosim/d2fd4df765869bbbcd72 to your computer and use it in GitHub Desktop.
全置換
String.prototype.replaceAll = function(before, after){
return this.split(before).join(after);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment