Skip to content

Instantly share code, notes, and snippets.

@nishinoshake
Last active May 29, 2016 04:21
Show Gist options
  • Save nishinoshake/44e1eb858f5e59422b94 to your computer and use it in GitHub Desktop.
Save nishinoshake/44e1eb858f5e59422b94 to your computer and use it in GitHub Desktop.
jQueryのremoveClassを正規表現で
$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