일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 형변환
- Validations
- 업캐스팅
- 상속
- jquery
- angular2
- 단축키
- 가변인자
- 상속예제
- 페이징
- Login with OAuth Authentication
- 스프링
- 다운캐스팅
- 추상클래스
- 로또
- 전자정부
- 전체
- 자바 야구게임
- 전체텍스트
- Random
- 야구게임
- 다형성
- while
- full text indexing
- 25가지 효율적인 sql작성법
- 이클립스
- IBatis procedure
- 자바
- Full text
Archives
- Today
- Total
nalaolla
indexOf 본문
728x90
반응형
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>Insert title here</title>
- <script type="text/javascript">
- window.onload = function() {
- var testValue = "This is the Cookbook's test string";
- var subsValue = "Cookbook";
- var iValue = testValue.indexOf(subsValue); // returns value of 12, index of substring
- if (iValue != -1)
- alert(iValue);
- }
- </script>
- </head>
- <body>
- </body>
- </html>
728x90
반응형
'javascript > fundamental' 카테고리의 다른 글
prompt (0) | 2016.01.07 |
---|---|
type (0) | 2016.01.07 |
onload (0) | 2016.01.07 |