[개발] 프로그램 지식
-
1. 버튼 영역1개월일주일1일전오늘~ 2. script 영역1) 시작일 세팅// 시작 날짜 지정 (일주일 전으로 세팅)var linkDtString = "${commandMap.linkDt}"; // commandMap.linkDt 문자열로 가정var linkDt = new Date(linkDtString); // 문자열을 날짜 객체로 변환linkDt.setDate(linkDt.getDate() - 7); // 일주일 전의 날짜 설정var oneWeekBefore = linkDt.toISOString().split("T")[0];$("#startDt").val(oneWeekBefore); 2) 1개월, 일주일, 1일전, 오늘 버튼 클릭 이벤트$(".btnSearchPeriod").on("click..
[jquery] 조회 버튼 1개월, 일주일, 1일전, 오늘, 달력 클릭 시 이벤트 코드 정리1. 버튼 영역1개월일주일1일전오늘~ 2. script 영역1) 시작일 세팅// 시작 날짜 지정 (일주일 전으로 세팅)var linkDtString = "${commandMap.linkDt}"; // commandMap.linkDt 문자열로 가정var linkDt = new Date(linkDtString); // 문자열을 날짜 객체로 변환linkDt.setDate(linkDt.getDate() - 7); // 일주일 전의 날짜 설정var oneWeekBefore = linkDt.toISOString().split("T")[0];$("#startDt").val(oneWeekBefore); 2) 1개월, 일주일, 1일전, 오늘 버튼 클릭 이벤트$(".btnSearchPeriod").on("click..
2023.08.04 -
1. script 추가 or https://ckeditor.com/ckeditor-5/download/ CKEditor 5 - Download Latest Version Download a ready-to-use CKEditor 5 Build. Install, download or serve a ready-to-use rich text editor of your choice. ckeditor.com 2. textarea 지정 3. script영역에 ck5 에디터 코드 추가 // CK5 에디터 var ckEditor; ClassicEditor .create(document.querySelector('#contentsDs_temp'), { toolbar:{items:['bold','italic','under..
[ckEditor5] ckEditor5 구현 참고 코드1. script 추가 or https://ckeditor.com/ckeditor-5/download/ CKEditor 5 - Download Latest Version Download a ready-to-use CKEditor 5 Build. Install, download or serve a ready-to-use rich text editor of your choice. ckeditor.com 2. textarea 지정 3. script영역에 ck5 에디터 코드 추가 // CK5 에디터 var ckEditor; ClassicEditor .create(document.querySelector('#contentsDs_temp'), { toolbar:{items:['bold','italic','under..
2023.08.04 -
문제상황 : ckEditor5에서 이미지 업로드 후에 이미지를 못 불러옴 디비에는 img src 경로 없이 으로 저장됨 문제 원인 : uploadAdapter.js 에서 upload 시에 제대로 기능을 수행하지 못함 uploadAdapter.js 기존 코드 upload() { return this.loader.file.then( file => new Promise((resolve, reject) => { this._initRequest(); this._initListeners( resolve, reject, file ); this._sendRequest( file ); })); } 변경 코드 upload() { var reader = new FileReader(); return new Promise( (..
[ckEditors5] ckEditors5 이미지 못 불러오는 오류 feat. <figure class="image"><img></figure>문제상황 : ckEditor5에서 이미지 업로드 후에 이미지를 못 불러옴 디비에는 img src 경로 없이 으로 저장됨 문제 원인 : uploadAdapter.js 에서 upload 시에 제대로 기능을 수행하지 못함 uploadAdapter.js 기존 코드 upload() { return this.loader.file.then( file => new Promise((resolve, reject) => { this._initRequest(); this._initListeners( resolve, reject, file ); this._sendRequest( file ); })); } 변경 코드 upload() { var reader = new FileReader(); return new Promise( (..
2023.08.04 -
메이븐 업데이트 안되는 경우, 메이븐 업데이트 시 에러뜨느 경우, 로그안뜨고, 서버시작만 되는 경우1. 이클립스 종료 2. 프로젝트 폴더 들어가서 .settings 삭제 ( 어차피 메이븐 업데이트하면서 다시 생김 ) 3. 다시 eclipse 실행해서 메이븐 업데이트 해주면 됨!
[전자정부프레임워크] 메이븐 업데이트 안되는 경우 web.xml is missing and <failOnMissingWebXml> is set to true메이븐 업데이트 안되는 경우, 메이븐 업데이트 시 에러뜨느 경우, 로그안뜨고, 서버시작만 되는 경우1. 이클립스 종료 2. 프로젝트 폴더 들어가서 .settings 삭제 ( 어차피 메이븐 업데이트하면서 다시 생김 ) 3. 다시 eclipse 실행해서 메이븐 업데이트 해주면 됨!
2023.08.04 -
메이븐 업데이트 안되는 경우, 메이븐 업데이트 시 에러뜨느 경우, 로그안뜨고, 서버시작만 되는 경우1. 이클립스 종료 2. 프로젝트 폴더 들어가서 .settings 삭제 ( 어차피 메이븐 업데이트하면서 다시 생김 ) 3. 다시 eclipse 실행해서 메이븐 업데이트 해주면 됨!
[전자정부프레임워크] 메이븐 업데이트 안되는 경우 web.xml is missing and <failOnMissingWebXml> is set to true메이븐 업데이트 안되는 경우, 메이븐 업데이트 시 에러뜨느 경우, 로그안뜨고, 서버시작만 되는 경우1. 이클립스 종료 2. 프로젝트 폴더 들어가서 .settings 삭제 ( 어차피 메이븐 업데이트하면서 다시 생김 ) 3. 다시 eclipse 실행해서 메이븐 업데이트 해주면 됨!
2023.07.25 -
var dataSource = new kendo.data.DataSource({ transport: { read: function(options) { $.ajax({ url: "/api/data", type: "GET", dataType: "json", success: function(result) { options.success(result); }, error: function(xhr, status, error) { options.error(error); } }); } }});[출처] [kendo ui] dataSoure read, undefined 하..
[kendo ui] dataSoure read, undefined 하는 경우var dataSource = new kendo.data.DataSource({ transport: { read: function(options) { $.ajax({ url: "/api/data", type: "GET", dataType: "json", success: function(result) { options.success(result); }, error: function(xhr, status, error) { options.error(error); } }); } }});[출처] [kendo ui] dataSoure read, undefined 하..
2023.07.24