$('input[name="file_path"]').change(function(){ setImageFromFile(this, '#preview'); }); function setImageFromFile(input, expression) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $(expression).attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } input file 에서 파일이 선택되면 onchange 가 동작 file 객체를 담아서 filereader 를 호출 및 이미지를 계산
[DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) 태그에 자동완성 기능을 해제하는 autocomplete="off" 추가 autocomplete="off" = 자동완성을 금지한다. * 단, 크롬이나 사파리 등에서 나타나는 [구글/애플/삼성 계정에 이 계정 저장하기]를 통해 저장된 정보는 금지되지 않는다. 이 또한 금지시키려면 아래에 나오는 new-password 값을 사용
public static LoginVO getUser(){ ServletRequestAttributes servletrequestattributes = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes(); HttpSession session = servletrequestattributes.getRequest().getSession(true); return (LoginVO) session.getAttribute("컨트롤러에서 만들었던 setAttribute 값 ex)loginVO"); } 참고 : https://devmg.tistory.com/63
InetAddress.getLocalHost(); public static String getServerIp() { InetAddress local = null; try { local = InetAddress.getLocalHost(); } catch ( UnknownHostException e ) { e.printStackTrace(); } if( local == null ) { return ""; } else { String ip = local.getHostAddress(); return ip; } }
Mysql search 1. brew search mysql Mysql 다운 2. brew install mysql 3. (에러 발생했을경우) brew install openssl * Error 발생 이유 : homebrew update 문제 * 참고 : https://jinmay.github.io/2020/05/18/mysql/fix-error-installing-mysql-on-mac/ [mysql]macOS에서 brew로 mysql 설치할때 주의할 점 brew install 명령어를 통해 mysql을 설치할 때, 가끔 알 수 없는 에러가 발생할 때가 있다. openssl을 재설치해보고 git과 gcc 등을 다시 설치해보아도 해결 할 수 없었던 적이 있는데 생각외로 간단하게 jinmay.githu..
ul에 동적으로 li를 append 시키고 3초안에 각각의 li 태그를 .remove() 시킨다. .find() *배열에서 특정 값을 찾는 조건을 callback 함수를 통해 전달하여, 조건에 맞는 값 중 첫번째 값을 리턴 만약 배열에 조건을 만족하는 값이 없으면 undefined를 리턴 var ul = $(".divUl"); var li = $('새로운 Q&A가 등록되었습니다.'); ul.append(li); setTimeout(function(){ $(".ul").find(li).remove(); }, 3000);
- Total
- Today
- Yesterday
- xcode12.5.1
- js달력
- Oracle
- jsignature.min.js
- file drag drop
- 달력기능개발
- Swift
- jxls 엑셀
- Xcode
- swift 계산기
- spring annotation
- MSsql
- 트리구조jstree
- xcode swift memo
- for in 주의
- 전자서명개발
- 전자서명기능구현
- swift 메모장 만들기
- js라이브러리사용
- jxls
- https://www.jstree.com/
- PostgreSQL
- mysql
- for in문제
- ios app 개발
- js라이브러리
- js file drag
- draganddrop file
- fullcalendar js
- js 전자서명
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |