jQuery removeClass 와일드 카드 예를 들어 일치하는 모든 클래스를 제거하는 쉬운 방법이 있습니까? color-* 그래서 요소가 있다면 : 제거한 후에는 감사! removeClass의 함수 보낸 함수 인수 얻어 jQuery를 1.4 . $("#hello").removeClass (function (index, className) { return (className.match (/(^|\s)color-\S+/g) || []).join(' '); }); 라이브 예 : http://jsfiddle.net/xa9xS/1409/ $('div').attr('class', function(i, c){ return c.replace(/(^|\s)color-\S+/g, ''); }); 필자는 alterCla..