SEONG

  • home
  • guestbook
  • write
  • Java
  • jQuery
  • javascript
  • Spring
  • Web
  • Database
  • WAS
  • Network
  • Music
  • etc

배열검사 1

[jQuery] 배열에 포함되어있는지 검사하기

배열에 해당 값이 포함되어있는지 검사하기 $.inArray(value, array[, fromIndex])Array에서 특정값(value)을 찾으면 해당 ​index를 반환하고, 찾지 못하면 -1을 반환. var arrTmp = [1, 3, "lee", "kim" ];if($.inArray(3, arrTmp) != -1){alert("찾았음");}else{alert("없음");}

Programming/jQuery 2014.08.14
이전
1
다음
더보기
프로필사진

SEONG

  • Category
    • Programming
      • java
      • jQuery
      • javascript
      • Spring
      • Python
      • Web
      • DB
      • WAS
      • network
      • algorithm
      • etc
    • Music
    • News
      • IT
      • 경제/금융
      • 사회
    • Hobby/Life

Tag

알고리즘, JavaScript, AOP, ajax post, web, jQuery, db, Plies, Empire OST, spring, ibatis, spring json, java, jeus, music, WAS, rest api, fast and furious7, algorithm, furious7 ost,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

  • SEONG IL-MAN

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바