0
어떻게 5 클릭 기능을 하나로 변환합니까? 예를 들어5 클릭 기능을 변경 값으로 변환하는 방법
$("div#styleswitcher a.green").click(function(){
$("container").css({'background' : 'green'});
)
$("div#styleswitcher a.blue").click(function(){
$("container").css({'background' : 'blue'});
)
$("div#styleswitcher a.red").click(function(){
$("container").css({'background' : 'red'});
)
$("div#styleswitcher a.yellow").click(function(){
$("container").css({'background' : 'yellow'});
)
좋은 깨끗한 솔루션 같이 클래스 이름이어야한다는 것입니다! – tekBlues