전체 글249 html 영역 pdf 다운 여러 페이지 처리 한글처리 jspdf.min.js html2canvas.js window.onload= function(){ setTimeout(function() { html2canvas($("#printarea"), { background :"#FFFFFF", onrendered : function(canvas) { // 한글깨짐현상때문에 jpeg->jspdf 전환 var imgData = canvas.toDataURL("image/jpeg"); var pageWidth = 210; //가로 길이 a4 기준 var pageHeight = pageWidth * 1.414; //출력 페이지 세로길이 var imgWidth = pageWidth - 20; var imgHeight = canvas.height * imgWidth / canvas.width; var heightLeft.. 2021. 4. 12. checkbox script로 체크 리스트 값 출력하기 html javascript var chk_arr = []; $("[name=codes]:checked").each(function(){ var chk = $(this).val(); chk_arr.push(chk); console.log(chk_arr); 2021. 4. 12. a태그 다운로드 파일명 예제 " download=""> " download=""> " download=""> download 뒤에 넣은 파일명으로href 경로의 파일을 다운로드함. 2021. 4. 6. 카카오 로그인 Redirect URI 추가 KOE006 에러 developers.kakao.com/ Kakao Developers 카카오 API를 활용하여 다양한 어플리케이션을 개발해보세요. 카카오 로그인, 메시지 보내기, 친구 API, 인공지능 API 등을 제공합니다. developers.kakao.com - 개발자 센터 접속 - 로그인 - 내 어플리 케이션 - 카카오 로그인 - redirect url 추가 2021. 4. 6. html a태그 다운로드 download 예제 소스 예제 소스 결과화면 소스 설명 a태그 href="" 에서 다운파일 링크를 확인한다. 서버에 파일 업로드 후 웹 브라우저 url로 파일 존재하는지 체크 download 옵션을 써준다. 2021. 4. 6. 네이버 개발자 센터 로고 변경 시 검수요청 안됨 해결방법 추가 요청 서류를 아무거나 눌렀다가 다시 없음으로 하면 변경을 여부를 다시 체크해서 버튼이 활성화 된다. 2021. 4. 2. javascript input 배열 유효성검사 예제 item[] model[] sn[] pd[] 4개의 값을 갯수만큼 유효성검사 var index_data=$(\"input[name='item[]']\").length-1; for (let i = 0; i 2021. 4. 2. script 마지막 형제 찾기 예제 children() last() console.log($('#item_list').children().last()); function delForm() { // console.log(); var length = $('#item_list').children().length; if(length>1){ console.log($('#item_list').children().last()); } } 2021. 4. 2. .html() tr td 생략됨 before source Yes No Yes No function addForm() { console.log($('#list_file_tag').html()); } 콘솔창에 가 생략됨 after source Yes No Yes No 없이 만 작성할 경우 생기는 문제로 추정 소스에 삽입해줬더니 해결 2021. 4. 2. php key value array push array push 1차원 배열 같은경우 아래와 같이 배열 요소를 추가할수 있다. array_push($변수명, "apple", "raspberry"); 하지만 key value 로 넣기위해선 아래와 같은 방식을 사용해야한다. $변수명["p.title"] = "제품명"; 2021. 4. 1. script localStorage 퀵 메뉴 닫힘 펼치기 페이지 이동시 유지 $(document).ready(function() { //토글 함수 function toggleHandle() { $('.quick_menu').toggleClass('type_fold'); } //체크 localStorage 데이터 겟 if (localStorage.getItem('switch-state') && localStorage.getItem('switch-state') === 'true') { toggleHandle(); } //클릭시 토글 처리 localStorage 셋팅 처리 $('.btn_fold').click(function() { let el = $('.quick_menu'); toggleHandle(); localStorage.setItem('switch-state', el.has.. 2021. 3. 31. 구글 마커 안나옴 Error InvalidValueError: setMap: not an instance of Map; and not an instance of StreetViewPanorama error code Error InvalidValueError: setMap: not an instance of Map; and not an instance of StreetViewPanorama before code function makeGMap(lat,lng,code){ var mapdata="map"+code var latdata=lat var lngdata=lng var myLatLng = { lat:latdata, lng:lngdata }; var mapcode = new google.maps.Map(document.getElementById("map"+code), { zoom: 16, center: myLatLng }); var markercode = new google.maps.Marker.. 2021. 3. 31. 이전 1 ··· 9 10 11 12 13 14 15 ··· 21 다음