Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 소프트웨어
- 배포 자동화
- git 폴더 모으기
- EL1021E
- Node Property
- 깃허브 토큰 생성
- ..gitignore
- CI/CD
- vue 실행
- 자바 swing 프로젝트
- deploy.sh
- firstChild
- Jenkins
- Quartz dependency
- vue 추가
- 채팅 프로젝트
- .ppk
- document 함수
- reset
- AWS 생성
- 깃허브 토큰 발급
- 환경변수
- submit 기본동작
- 되돌리기
- 타임리프 참조 오류
- 클래스 참조
- Quartz 라이브러리
- dbeaver 백업/복구
- 테스팅
- 배열 call by value
Archives
- Today
- Total
목록비동기적 실행 (1)
TY blog
JavaScript 이미지 규격 체크 onload 함수
/* imageCheck 함수 */ function imageCheck(){ var _URL = window.URL || window.webkitURL; var img = new Image(); img.src = _URL.createObjectURL("imgURL"); /* 이미지 가로, 세로 구하는 로직 */ img.onload = function() { var width = img.width; var height = img.height; if(width > 1000 || height > 1000){ alert("이미지는 가로, 세로 1000px * 1000px 이하만 업로드 할 수 있습니다."); return false; } } console.log("함수실행"); } 위의 함수는 이미지를 읽어들여 ..
프로그래밍 언어/JavaScript
2023. 3. 13. 01:00