Last active
May 29, 2016 04:21
-
-
Save nishinoshake/44e1eb858f5e59422b94 to your computer and use it in GitHub Desktop.
jQueryのremoveClassを正規表現で
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
$about.removeClass(function(index, className) { | |
return (className.match(/\bbg\d+/g) || []).join(' '); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment