"JQuery CDN, 최신 버전 사용"의 두 판 사이의 차이

46번째 줄: 46번째 줄:
;1.4.5 버전
;1.4.5 버전
<source lang='html5'>
<source lang='html5'>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<link rel="stylesheet" href="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<script src="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</source>
</source>



2015년 6월 4일 (목) 22:08 판

jQuery, jQuery UI, jQuery mobile 최신 버전 사용
jQuery 최신 버전 확인
jQuery 최신 버전 적용

1 최신 버전 확인 및 사용

여기에 보이는 버전이 최신버전이다.
1.x 버전대와 2.x 버전대가 있다. 아직은 1.x 버전대를 추천(IE 8 지원)
  • [Download the compressed, production jQuery x.x.x] 클릭하여 나오는 주소창에 나오는 URL을 사용하자.
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

2 latest 버전

  • CDN에 있는 latest 버전을 사용하면 항상 최신 버전이 자동 적용되는 효과가 있다.

2.1 jQuery

2.x 최신 버전
<script src="//code.jquery.com/jquery.min.js"></script>
1.x 최신 버전
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

2.2 jQuery UI

1.11.4 버전 (stable)
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/jquery-ui.min.js">
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"></script>
git 버전 (unstable)
<link rel="stylesheet" href="//code.jquery.com/ui/jquery-ui-git.css">
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="//code.jquery.com/ui/jquery-ui-git.js"></script>

2.3 jQuery Mobile

1.4.5 버전
<link rel="stylesheet" href="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>

3 같이 보기

4 주석


5 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}