jQuery Mobile 설치
- 이전 페이지 jQuery Mobile 소개
- 다음 페이지 jQuery Mobile 페이지
jQuery Mobile를 웹 페이지에 추가하다
jQuery Mobile를 웹사이트에서 사용하기 시작할 수 있는 여러 가지 방법이 있습니다. 다음과 같이 할 수 있습니다:
- CDN에서 jQuery Mobile를 참조하다(추천)
- jQuerymobile.com에서 jQuery Mobile 라이브러리를 다운로드하다
CDN에서 jQuery Mobile를 참조하다
힌트:CDN (Content Delivery Network)는 일반적인 파일을 웹을 통해 배포하여 사용자의 다운로드 속도를 빠르게 합니다.
jQuery와 마찬가지로, 컴퓨터에 프로그램을 설치할 필요가 없습니다. 다음 스타일 시트와 자바스크립트 라이브러리를 HTML 페이지에서 직접 참조하면 jQuery Mobile가 작동합니다:
jQuery Mobile CDN:
<head> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css"> <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> <script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script> </head>
jQuery Mobile 다운로드
jQuery Mobile를 서버에 저장하고 싶다면, 다음에서 다운로드할 수 있습니다: jQuerymobile.com 파일을 다운로드하세요。
<head> <link rel=stylesheet href=jquery.mobile-1.3.2.css> <script src=jquery.js></script> <script src=jquery.mobile-1.3.2.js></script> </head>
힌트:다운로드한 파일을 사용하고자 하는 폴더에 저장하십시오.
힌트:이 <script> 태그에 type="text/javascript" 속성이 없는 이유가 궁금하지 않으신가요?
HTML5에서 이 속성은 필수적이지 않습니다. JavaScript는 HTML5 및 모든 현대 브라우저의 기본 스크립트 언어입니다!
- 이전 페이지 jQuery Mobile 소개
- 다음 페이지 jQuery Mobile 페이지