🏫 TECH
-
javascript는 오버로딩을 지원하지 않습니다. 예를 들어서, 123456789101112131415161718192021222324252627 New Document function test(content){ alert(content); } function test(){ alert(1); } test("hello my name is.."); Colored by Color Scriptercs 결과는 아래와 같지요. 위에 작성된 function test(content){}는 무시당합니다. 해결하는 방법 solution : 1파라미터 숫자로 구분하는 방법 12345678 function test(){ if(arguments.length === 1){ }else if(arguments.length === ..
[javascript] 간단하게 오버로딩 처리하기!javascript는 오버로딩을 지원하지 않습니다. 예를 들어서, 123456789101112131415161718192021222324252627 New Document function test(content){ alert(content); } function test(){ alert(1); } test("hello my name is.."); Colored by Color Scriptercs 결과는 아래와 같지요. 위에 작성된 function test(content){}는 무시당합니다. 해결하는 방법 solution : 1파라미터 숫자로 구분하는 방법 12345678 function test(){ if(arguments.length === 1){ }else if(arguments.length === ..
2017.10.24 -
아래와 같이 작성하면 됩니다.2초 후에, location.reload()함수가 실행됩니다. 감사합니다.#javascript #sleep #wait #setTimeout reference : http://webisfree.com/2014-04-08/[javascript]-%EC%8B%9C%EA%B0%84-%EC%A7%80%EC%97%B0-%ED%95%A8%EC%88%98-%EC%9D%BC%EC%A0%95-%EC%8B%9C%EA%B0%84-%EB%92%A4-%EC%8B%A4%ED%96%89%EC%8B%9C%ED%82%A4%EA%B8%B0-settimeout()-%7B%7D
[javascript] setTimeout 지연함수 사용방법아래와 같이 작성하면 됩니다.2초 후에, location.reload()함수가 실행됩니다. 감사합니다.#javascript #sleep #wait #setTimeout reference : http://webisfree.com/2014-04-08/[javascript]-%EC%8B%9C%EA%B0%84-%EC%A7%80%EC%97%B0-%ED%95%A8%EC%88%98-%EC%9D%BC%EC%A0%95-%EC%8B%9C%EA%B0%84-%EB%92%A4-%EC%8B%A4%ED%96%89%EC%8B%9C%ED%82%A4%EA%B8%B0-settimeout()-%7B%7D
2017.10.23 -
>Thank you very much.$('#test').text();감사합니다.
[html/tag] p태그에서 값을 가져오는 방법>Thank you very much.$('#test').text();감사합니다.
2017.10.22 -
bootstrap없이 jquery를 사용한다고 가정하였을 때,사용하기 제법 좋은 Modal 팝업!Link : http://joaopereirawd.github.io/animatedModal.js/
jquery에 animated가 걸린 modal 팝업!bootstrap없이 jquery를 사용한다고 가정하였을 때,사용하기 제법 좋은 Modal 팝업!Link : http://joaopereirawd.github.io/animatedModal.js/
2017.10.19 -
[HTML] [CSS].test { resize:none; line-height:30px; width:100%; overflow-y:hidden; height:30px;} thank!
[textarea] To increase the height automatically[HTML] [CSS].test { resize:none; line-height:30px; width:100%; overflow-y:hidden; height:30px;} thank!
2017.10.14 -
span is an inline element that doesn't support vertical margins. Put the margin on the outer div instead. Use tag instead of tag. or span { display:inline-block; /*or display:block;*/ } thank! #span #p #span not working #margin-topreference : https://stackoverflow.com/questions/11700985/margin-top-not-working-for-span-element
[CSS] <span> not working margin-topspan is an inline element that doesn't support vertical margins. Put the margin on the outer div instead. Use tag instead of tag. or span { display:inline-block; /*or display:block;*/ } thank! #span #p #span not working #margin-topreference : https://stackoverflow.com/questions/11700985/margin-top-not-working-for-span-element
2017.10.12