is
-
.is() MethodCODING/JavaScript 2018. 10. 28. 15:09
.is() Method 설명선택한 요소 중 하나 또는 하나 이상이 selectorElement 와 일치하는지 확인하여 일치하는 경우 true를 반환 통사론$(selector).is(selectorElement,function(index,element))Parameter Description selectorElement 요소의 인덱스 위치 function(index,element) * 선택 과목. 선택한 요소 그룹에 대해 실행할 함수를 지정합니다.index - 요소의 인덱스 위치 element - 현재의 요소 (「this」셀렉터도 사용할 수있다) 예의 부모가 요소 인 경우 일부 텍스트에 경고합니다.123if ($("p").parent().is("div")) { alert("Parent of p is div..