6/9

리무 rimu ·2023년 6월 9일

Spring

목록 보기
7/9

beans 컴파일?

이렇게하면 util이 추가됨

JQuery

Selectors
basic syntax : $(selector).action()
$("*") : 모든 요소
$(this) : 현재 요소
$("p") : 모든 <p> 요소
슈도 클래스 (가짜 class)
$("p:first") : 첫 번째 <p> 요소
$("p:last") : 마지막 <p> 요소

문서가 다 로드되면 ~ 해라!

<!DOCTYPE html>
<html>
	<head>
    	<title></title>
		<script src = "http://ajax.googleapos.com/ajax/libs/jquery/3.4.1/jquery/min.js"></script>
		<script>
$(document).ready(fuction() {
	//$("#some").val("abc"); // val은 잡아넣는 것, 값이 들어가면 얘로 보여줌    alert($("#some").val());
});
	</script>
  </head>
  <body>
  	<input type = "text" id = "some" value = "xxx"/>
  </body>
</html>  

스크립트 코드를 바디끝에 붙이기!!

Document Ready System

hover : mouseenter() + mouseleave()

profile
JAVA / SQL / Spring 을 공부하고 있습니다 🐥

0개의 댓글