WEB.JQUERY

chapter01 : jQuery_into

GAWON 2023. 5. 22. 09:20
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<!-- 1. 오프라인에 제이쿼리.js 파일 추가 -->
<script src="js/jquery-3.4.1.js"></script>
<!-- 2. 온라인 CDN 이용 -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript">
/*
	jQuery 형식
	$(선택자).action();
	$ 기호 : jQuery를 정의하고 jQuery를 호출하여 사용할 수 있다.
	선택자 : HTML 요소를 찾는 역할
	action() : 선택된 요소가 행하는 동작
	
	1. 자바 스크립트 페이지 로드 이벤트
	onload = function(){}
	
	2. 제이쿼리 페이지 로드 이벤트
		1) $(document).ready(function(){});
		2) $().ready(function(){});
		3) $(function(){});		--> 보통 많이 사용하는 형태
 */


 	$(function(){
 		alert("안녕하세요");
 	});
 
 
</script>
</head>
<body>

</body>
</html>