일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- RGB 생성
- 새로고침
- 웹 테스트 이미지
- color site
- 테스트 이미지
- Devtools
- springboot
- RGB WEB
- livereload
- Spring
- 팬톤 색상 웹
- test image
- Today
- Total
목록Program Language/Java Script (5)
기억은 휘발성 메모리
jQuery 는 자바스크립트의 라이브러리이다. jQuery를 받아오는 방법jQuery CDN jQuery Syntax $(selector).action() ex) $(this).hide() - hides the current element $("p").hide() - hides all elements. jQuery Eventready 웹페이지 로딩이 끝났을때click 클릭 됬을때focus 마우스를 올렸을때 jQuery Effects $(selector).hide(speed,callback); $(selector).show(speed,callback); $(selector).fadeIn(speed,callback); $(selector).animate({params},speed,callback); jQue..
Chrome 사용 기준디버깅이 필요한 부분에 값을 console.log(해당변수)를 script 코드에 추가한다.F12 혹은 Ctrl + Shift + i 를 이용해 Chrome 개발자 도구를 연다.Console Tab으로 이동한다.해당 값을 확인한다. 디버깅의 기본은 내가 의도한 값이 들어가는지 확인하는것 !!
객체지향언어에서 string 변수는 변수로 생각되는것 뿐만아니라 string 객체 내에 포함된 다양한 Method들을 포함하고 있다.자바스크립트에서 모든것은 Array Object 둘중 하나이다. var s = ""; s 는 문자열var s = []; s 는 배열 배열 vs 객체(필드변수 + 메소드) 배열 a = [ "사과", "배"];index가 정해져 있음 0,1접근 방법 a[0] 객체 a = {첫_번째 : "사과", 두_번째 : "배"};index를 지정해 주어야 함접근방법 a.첫_번째 = "사과"
function print() { window.document.getElementById("time").innerHTML = Date(); } window.setInterval(print,1000);
Title 구구단 단 : function print() { var dan = document.getElementById("input").value; var gugudan = ""; for (var i = 1; i < 10; i++) { gugudan += dan + " x " + i + " = " + dan * i + ""; } document.getElementById("gugu").innerHTML = gugudan; } document.getElementById("button").onclick = print; MethodDescriptiondocument.getElementById(id)Find an element by element iddocument.getElementsByTagName(name..