Created
July 13, 2014 00:39
-
-
Save naosim/d2fd4df765869bbbcd72 to your computer and use it in GitHub Desktop.
全置換
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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