본문 바로가기

wasup

검색하기
wasup
프로필사진 wasupup

  • CATEGORY (377)
    • Linux (12)
    • NodeJs (4)
    • DataBase (35)
      • Oracle (0)
      • MySQL (20)
    • IT (241)
      • Java (117)
      • Android (23)
      • Python (16)
      • PHP (1)
      • html, css, script (35)
      • Network (22)
    • IT etc (54)
      • Git (8)
      • 기획 (1)
      • 마케팅 (1)
      • Tip (9)
    • CMS (12)
      • gnu (11)
      • 카페24 (0)
    • 웹표준 (2)
    • Box (8)
      • Portfolio (3)
      • Game (2)
Guestbook
반응형
Notice
«   2025/06   »
일 월 화 수 목 금 토
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
Link
Archives
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록sort() (1)

wasup

JavaScript) 배열의 함수

1. push(); : 배열 끝에 요소를 추가. //Array.push(); var arr6 = ['a', 'b', 'c']; arr6.push('d'); arr6.push(function(){alert('배열.push() 함수 호출')}); arr6.push(function(x, y){alert( x + ' + ' + y + ' = ' + x+y)}); document.write(''); for(var i = 0; i < arr6.length; i++){ document.write(''+typeof(arr6[i])+ '=' + arr6[i] + ''); } document.write(''); 2. pop(); : 배열의 마지막 요소를 꺼내온 후 삭제 //Array.pop(); var last = arr..

IT/html, css, script 2021. 4. 14. 16:58
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바