jQuery
자바스크립트 라이브러리
- write less, do more
- 오픈소스
- 작은 용량
- 브라우저간 표준화 되어 있음
- API문서 존재
- 사용자 커뮤니티 활성화
- element를 빠르게 찾고 조작할 수 있음( $() )
- Method chaining
- 프론트엔드 프레임워크
* 직접 DOM을 조작하는 제이쿼리는 가상 DOM을 사용하는 라이브러리(react, vue.js 등)의 등장으로
의존도가 하락하고 있는 추세이다.
jQuery API Documentation
jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. If you're new t
api.jquery.com
사이트- jquery 파일 다운 - 프로젝트 WebContent 붙여넣기
- jQuery 사용방법
1) 라이브러리를 다운받아 직접 불러와서 사용
<script type="text/javascript" src="../jquery-1.9.1.min.js"></script>
<!--라이브러리를 불러올떄는 뒤에 </script>를 생략할 수 없다 -->
2) cdn 사용
위 사이트에서 Using jQuery with a CDN - Google CDN, CDNJS CDN 등에서 경로를 링크할 수 있다
링크를 참조해서 가져오는 방법으로 1번 방법보다는 속도가 느리다
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
'jQuery' 카테고리의 다른 글
[jQuery]setTimeout, setInterval, 태그의 인덱스 번호에 따라 구분하기 (0) | 2021.03.05 |
---|---|
[jQuery]중첩태그 구분하기, 같은 태그를 속성에 따라 구분하기 (0) | 2021.03.05 |
[jQuery]이클립스 template 추가하기/ 제이쿼리 함수 attr, each, children, text, html, val (0) | 2021.03.05 |
[jQuery]ready함수, 제이쿼리 api문서, css함수, 제이쿼리 변수 (0) | 2021.03.04 |
[jQuery]prototype.js으로 Ajax구현-아이디 중복 체크 예제 (0) | 2021.03.04 |