일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- CSS
- 이전주소
- disabled
- 세션
- accept
- element추가
- strpos
- parent of iframe
- php
- 쿠키
- ucfirst
- 문자열포함여부
- date
- JQuery
- indexOf
- SubString
- attr
- input
- 시간계산
- mb_strimwidth
- Javascript
- 세션사용법
- Selector
- 웹프로그래밍
- Meta Tag
- date포맷
- strtotime
- HTML
- mysql
- File
- Today
- Total
목록전체보기 (77)
Heojju
▤ 소수점 올림 document.write(Math.ceil(123.456)+"\n"); //124 document.write(Math.ceil(123.567)+"\n"); //124 ▤ 소수점 버림 document.write(Math.floor(123.456)+"\n"); //124 document.write(Math.floor(123.567)+"\n"); //124 ▤ 소수점 반올림 document.write(Math.round(123.456)+"\n"); //123 document.write(Math.round(123.567)+"\n"); //124 ▤ toFixed : 숫자를 문자열로 변환하면서 지정된 소수점 이하 숫자를 반올림하여 출력 document.write((123.456).toFixed(..
▤ iconv(in_charset, out_charset, string)
▤ left : 왼쪽에서 문자열 자르기left(string, length) 예시 : SELECT left("heojju*woojoo*universe",10)결과 : heojju*woo ▤ substring : 중간에서 문자열 자르기substring(string, position, length)예시 : SELECT substring("heojju*woojoo*universe",5, 12)결과 : ju*woojoo*un▤ right : 오른쪽에서 문자열 자르기right(string, length)예시 : SELECT right("heojju*woojoo*universe",10)결과 : o*universe▤ substring_index : 구분자(delimiter)가 count만큼 나오기 전까지 자르기subs..
▤ split(기준)기준이 되는 문자로 문자열을 잘라 배열로 반환 ▤ substring(시작인덱스, 종료인덱스)문자열의 길이를 기준으로 시작인덱스부터 종료인덱스까지 반환. 0부터 시작 ▤ substr(시작인덱스, 길이)문자열의 길이를 기준으로 시작인덱스부터 길이까지 반환. 0부터 시작 var str = "2017-11-03"; var splitArray = str.split("-"); //배열로 저장 console.log(splitArray); var substringValue = str.substring(5,7); //11 console.log(substringValue); var substrValue = str.substr(5,2); //11 console.log(substrValue); 실행결과 s..
▤ indefOf(찾을 문자 혹은 문자열) var str = "abcdefg"; var result = str.indexOf("ef"); document.write(result); //못찾으면 -1. 찾으면 글자의 위치 반환(0부터 시작). 출력 : 4
▤ unsigned컬럼 생성시에 unsigned 를 선언하면음수~양수까지 사용되던 컬럼이 양수만 사용하게 된다.
▤ alert(내용); function btnClick(){ alert("알림창띄우기"); } 실행화면 ▤ prompt(물어볼 내용,기본값);입력한 내용을 return function btnClick(){ var returnValue = prompt("이름을 입력하세요","홍길동"); $("#name")[0].value = returnValue; } 실행화면
▤ confirm(내용) function btnClick(){ if (confirm("정말 삭제하시겠습니까?") == true){//확인 document.form.submit(); }else{//취소 return; } } 실행화면
▤ cursor 속성 .element{cursor:auto;} auto crosshair default move hand text wait help n-resize s-resize ne-resize sw-resize nw-resize se-resize e-resize w-resize pointer progress not-allowed no-drop vertical-text all-scroll col-resize row-resize cursor1.cur cursor2.gif 참고 : http://cofs.tistory.com/212 [CofS]
위 버튼을 길게 누르거나 더블클릭 해보세요. $(document).ready(function(){ var timer; var istrue = false; function mouseDown(){ istrue = true; timer = setTimeout(function(){ holding();},3000); } function holding(){ if(timer) clearTimeout(timer); if(istrue){ alert('holding'); } } function mouseUp(){ istrue =false; } function dbClick(){ alert('double click'); } });