-
[Javascript] jQuery 사용하기Javascript 2021. 4. 14. 10:01반응형
# jQuery
<!-- 적용방법 1 --> <script src="js/jquery.js"></script> <!-- 적용방법 2 --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <!-- 적용방법 3 --> <script src="http://code.jquery.com/jquery-latest.js"></script>
EX) jQuery 사용하기
<head> 태그안에 jQuery 스크립트를 선언해준다
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <!-- 적용방법 1 --> <script src="js/jquery.js"></script> <!-- 적용방법 2 --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <!-- 적용방법 3 --> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> </body> </html>
반응형'Javascript' 카테고리의 다른 글
[Javascript] 자바스크립트(jQuery) 를 사용한 달력 만들기 (0) 2022.07.11 [Javascript] textarea 줄바꿈 (0) 2022.07.08 [Javascript] jQuery 팝업창 오늘하루 그만보기 (1) 2022.06.27 [Javascript] ajax error 확인 (0) 2021.07.08 [Javascript] JQuery 상위요소(상위태그) 선택하기 or 부모요소(부모태그) 선택하기 (0) 2021.06.19