Created
December 18, 2014 04:01
-
-
Save kiinlam/2e7fb34ea1cead72247f to your computer and use it in GitHub Desktop.
js中string对象的replace方法的用法
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.replace(reg, function (matchStr, subStr1,..., subStrN, indexOfMatchStr, originStr) { | |
return anything; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment