728x90 300x250 SMALL javaScript531 함수만드는 방법 ▶ 1단계 먼저 코드에서 함수로 포장할만한 중복 코드나 재사용 로직이 있는지 확인해본다. ▶ 2단계 중복된 코드를 담을 빈함수를 만들어준다. function 함수이름(){ 실행구문;(포장할 내용을 여기에 작성) } ▶ 3단계 만들어진 빈함수에 중복 코드를 포장해준다. ▶ 4단계 함수호출을 만들어준다. 예제) var star = ""; for (var i = 1; i 2019. 3. 30. 모바일용 메뉴 :: 좌우 슬라이드 https://www.w3schools.com/code/tryit.asp?filename=G2IAQFL94ZH6 Tryit Editor v3.6 Save to Google Drive If you have a Google account, you can save this code to your Google Drive. Google will ask you to confirm Google Drive access. Save file as: Save file www.w3schools.com × About Services Clients Contact Animated Sidenav Example Click on the element below to open the side navigation menu. ☰ open 매.. 2019. 3. 29. owl carousel slider 다운및 사용법 owl 슬라이더를 적용시켜 보자 https://owlcarousel2.github.io/OwlCarousel2/위사이트를 들어가면 owl carousel slider를 다운받을수 있다. 다운받은 파일의 압출을 풀면 여러개의 파일이 나오는데 docs 폴더에서demo에 들어가면 데모버전들을 볼수 있다.데모 버전을 확인하면서 원하는 모양을 선택할수 있다. docs/assets /assets/owlcarousel/assets/owl.carousel.min.css/assets/owlcarousel/assets/owl.theme.default.min.css /assets/vendors/jquery.min.js/assets/owlcarousel/owl.carousel.js /assets/vendors/jquery.m.. 2019. 3. 27. 함수구조 3가지 1. 일반적인 함수function 함수이름(){실행구문;} 2. 매개변수가 있는 함수function 함수이름([매개변수1[,매개변수2[,...]]){실행구문;} 3. 리턴값이 있는 함수function 함수이름([매개변수 1[,매개변수 2[,...]]){실행구문;return 실행결과;} 함수이름() 이렇게 작성하는 것을 함수호출이라고 한다. 2019. 3. 24. 이전 1 ··· 118 119 120 121 122 123 124 ··· 133 다음 728x90 반응형 LIST