본문 바로가기

Web

[Web] 유용한 사이트 ※ 포트 오픈 확인 https://lamanus.kr/ports?_gl=1*cxlqut*_ga*YW1wLW4wY3RuXzdMZHVoaEtCZTVOa1ktM1E https://www.yougetsignal.com/tools/open-ports/ Open Port Check Tool - Test Port Forwarding on Your Router www.yougetsignal.com ※ DNS 확인 https://krnic.or.kr/jsp/business/operate/dnsModify.jsp 한국인터넷정보센터(KRNIC) 도메인 소개, 등록 및 사용, IP주소, AS번호, DNS 정보, 관련규정 제공 xn--3e0bx5euxnjje69i70af08bea817g.xn--3e0b707e ※ JavaScr..
[jQuery] 무료 차트(chart) 플러그인 정리 무료 차트(chart) 플러그인 1. chart.js https://www.chartjs.org/ Chart.js | Open source HTML5 Charts for your website New in 2.0 New chart axis types Plot complex, sparse datasets on date time, logarithmic or even entirely custom scales with ease. www.chartjs.org 2. 구글차트 https://developers.google.com/chart Charts | Google Developers Interactive charts for browsers and mobile devices. developers.google.com..
[Web] 소스 코드 정렬해주는 사이트 정보 http://tools.arantius.com/tabifier Tools - Tabifier (HTML and CSS code beautifier) - arantius.com Tabifier The tabifier is a tool to properly indent computer code. The style it produces is a mix of my personal preferences for indentation plus what I could manage to make a program produce from dirty source. The tabifier currently supports CSS, HTML, and tools.arantius.com - JS 정렬해주는 사이트 http://js..
[Javascript] 무료 그리드 라이브러리 정보 - SlickGrid : 대용량 데이터에 적합 https://github.com/6pac/SlickGrid GitHub - 6pac/SlickGrid: A lightning fast JavaScript grid/spreadsheet A lightning fast JavaScript grid/spreadsheet. Contribute to 6pac/SlickGrid development by creating an account on GitHub. github.com - ToastUi Grid https://ui.toast.com/tui-grid TOAST UI :: Make Your Web Delicious! The TOAST UI Is Free Open-source JavaScript UI Librari..
[Tomcat] Spring Profile 지정하기 tomcat/bin 디렉토리 - Linux setenv.sh 파일 생성 후 아래와 같이 작성 JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active={profile_name}" - Window setenv.bat 파일 생성 후 아래와 같이 작성 JAVA_OPTS=%JAVA_OPTS% -Dspring.profiles.active={profile_name}
[Spring] Controller에서 alert 발생 후 redirect 하는 방법 response.setContentType("text/html; charset=UTF-8"); PrintWriter out = response.getWriter(); out.println(""); out.flush();
[javascript] 특정문자 포함 개수 찾기 javascript의 경우indexOf를 이용해서 특정 문자의 위치를 찾을 수 있다.하지만 indexOf의 경우 문자 하나의 위치만을 찾을 수 있다. String 값 중 특정 문자의 포함 개수를 구하기 위해서는 [indexOf(검색할 값, 시작위치)]와 결과 값이 없을 경우 -1을 리턴하는 것을 이용해서 하기와 같이 구할 수 있다. var idx = -1; var cnt = 0; do { idx = version.indexOf('.', idx + 1); if(idx != -1) { cnt++; } } while(idx != -1); 또는 특정 문자로 split 후 배열의 length - 1 값으로 포함 개수를 구할 수 있다. version.split('.').length - 1
[javascript] 특정 영역 프린트하기 var inbody = document.body.innerHTML; // 이전 body 영역 저장 window.onbeforeprint = function(){ // 프린트 화면 호출 전 발생하는 이벤트 document.body.innerHTML = document.getElementById('contents').innerHTML; // 원하는 영역 지정 } window.onafterprint = function(){ // 프린트 출력 후 발생하는 이벤트 document.body.innerHTML = inbody; // 이전 body 영역으로 복구 } window.print();