-
jQuery #3 & JavaScript #6JavaScript 2023. 3. 2. 19:28
jQuery w3s
- css 시작
- Traversing
- Ancestors
- Descendants
- childred()은 ‘자식’’들’
- $("div").children("p.first").css({"color": "red", "border": "2px solid red"}); p태그의 첫번째 자식들
- find() ‘자손’’들’
- $("div").find("*").css 모든 자손들
- childred()은 ‘자식’’들’
- Siblings
- siblings
- 자신 불포함 형제모두
- next
- nextAll
- nextUntil
- 어디서부터 어디서까지
- prev
- prevAll
- prevUntil
- siblings
- Filtering
- first()
- 첫번째
- last()
- 마지막번째
- eq(i)
- i번째 (0번 인덱스부터)
- 음수값을 쓰면 뒤에서 부터 찾는다
- -1번째는 마지막번 째
- filter()
- filter(class or id)
- not()
- 해당 요소가 아닌 것+’들’
- end()
- 필터 이전 상태
- first()
- 선택자에도 filter든 뭐든 쓸 수 있다. <>를 쓰고 싶으면 gt, lt를 써서 한다
- AJAX
- 예제 student.html 과 students.xml을 봐야함
- xml
- 최고 레벨의(조상)이 하나만 가능
- JSON
'JavaScript' 카테고리의 다른 글
jQuery #2 & JavaScript #5 (0) 2023.02.28 JavaSript #4 (0) 2023.02.27 JS #3 (0) 2023.02.24 JS #2 (0) 2023.02.23 JS #1 (0) 2023.02.23