TIL
2021.09.28 기록장
Gisungcu
2021. 9. 29. 19:52
ToDo
- 제이쿼리, 자바스크립트 공부
- 책 읽기
Done
- 책 읽기
Weekly goal
- 책 읽기
제이쿼리 튜토리얼
제이쿼리는 자바스크립트의 라이브러리로 많은 자바스크립트를 줄일 수 있다.
https://www.w3schools.com/jquERy/default.asp
jQuery Tutorial
jQuery Tutorial Examples in Each Chapter With our online editor, you can edit the code, and click on a button to view the result. Example $(document).ready(function(){ $("p").click(function(){ $(this).hide(); }); }); Try it Yourself » Click
www.w3schools.com
$(document).ready(function(){
$("button").click(function(){
$("#smaple_p").show();
});
);
기본적으로 selector는 달러표시로 태그를 컨텍할 수 있다.
click, show는 event라고 한다.
document가 ready된 상태에서 실행되기에 한번 감싼다.
로딩되지 않은 이미지등을 사용할 순 없으니.