본문 바로가기

sundries

1-5 간단한 형식의 $(document).ready()


<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>Insert title here</title>

</head>


<script src ="../js/jquery-3.2.1.js"></script>

<!--  간단한 형식의 $(document).ready()

 작성법  1. $();

2. 1번 작성 후 () 사이에 커서를 놓고 function(){} 작성

3. {} 사이에 커서를 놓고 엔터를 누른 뒤 코드 작성    -->

<script>

$(function(){

});


</script>

<body>

</body>

</html>