- jQuery, jQuery UI, jQuery mobile 최신 버전 사용
- jQuery 최신 버전 확인
- jQuery 최신 버전 적용
1 최신 버전 확인 및 사용
- 브라우저에서 http://jquery.com/download/ 접속
- 여기에 보이는 버전이 최신버전이다.
- 1.x 버전대와 2.x 버전대가 있다. 아직은 1.x 버전대를 추천(IE 8 지원)
- [Download the compressed, production jQuery x.x.x] 클릭하여 나오는 주소창에 나오는 URL을 사용하자.
html
Copy
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
html
Copy
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
2 latest 버전
- CDN에 있는 latest 버전을 사용하면 항상 최신 버전이 자동 적용되는 효과가 있다.
2.1 jQuery
html
Copy
<script src="//code.jquery.com/jquery.min.js"></script>
html
Copy
<script src="//code.jquery.com/jquery-latest.min.js"></script>
html
Copy
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
2.2 jQuery UI
html
Copy
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
2.3 jQuery Mobile
html
Copy
<link rel="stylesheet" href="//code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.css">
<script src="//code.jquery.com/jquery-latest.min.js"></script>
<script src="//code.jquery.com/mobile/latest/jquery.mobile.min.js"></script>
html
Copy
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.3/jquery.mobile.min.css" />
<script src="//code.jquery.com/jquery-latest.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.3/jquery.mobile.min.js"></script>
3 같이 보기
4 참고 자료
편집자 Jmnote 147.6.1.21 Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.