jQuery에 if 문을 작성했습니다."else if"가 jQuery에서 작동하지 않습니까?
내 코드 :
if($('#customer0').checked())
{
$('#shop').fadeOut();
}
else if($('#customer1').checked())
{
$('#shop').fadeIn();
}
else ($('#customer2').checked())
{
$('#shop').fadeOut();
};
내가 if (custmer0)
및 else (customer1)
fadeOut
및 fadeIn
작업 좋은이
customer2
일 때 (그것은 다른 문장입니다) 작동하지 않습니다? 뭐가 잘못 되었 니?
@ George Bailey, – Neal