jQuery

자바스크립트 라이브러리

- write less, do more

- 오픈소스

- 작은 용량

- 브라우저간 표준화 되어 있음

- API문서 존재

- 사용자 커뮤니티 활성화

- element를 빠르게 찾고 조작할 수 있음( $() )

- Method chaining

- 프론트엔드 프레임워크

 

* 직접 DOM을 조작하는 제이쿼리는 가상 DOM을 사용하는 라이브러리(react, vue.js 등)의 등장으로

의존도가 하락하고 있는 추세이다. 

 


api.jquery.com/

 

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>

 

+ Recent posts