2013-03-13 1 views
3

안녕하세요 SASS에 새로 온 사람과 "if value in array"예를 들어"IF value IN array"작성 방법은 무엇입니까?

같은 것을 작성하는 방법을 알고 싶어요 : 어떤 답변

$animal : dog; 
$landAnimal : (dog, cat, lion); 
$seaAnimal : (fish, squid, whale); 

//keyword IN doesn't work 
@if $animal in $landAnimal{ 
    //do something 
}@else if $animal in $seaAnimal{ 
    //do something 
} 

내가 문서를 검색하고 인터넷 검색을하지만 시도 내가 못 찾았을 . 여기있는 사람이라면 누구나 해결책이 있습니까? 나는 그것이 아주 간단하다고 믿는다.

답변