본문 바로가기

전체 글474

지은이 개발 블로그, 깃헙 주소, 실습 전 책 내용 블로그 주소 삐멜 소프트웨어 엔지니어 - Happy Engineering! (cselabnotes.com) 삐멜 소프트웨어 엔지니어 Happy Engineering! cselabnotes.com github 소스 주소 fsoftwareengineer/todo-application (github.com) GitHub - fsoftwareengineer/todo-application Contribute to fsoftwareengineer/todo-application development by creating an account on GitHub. github.com 책 관련 질문과 오류 Discussions · fsoftwareengineer/todo-application (github.com) GitH.. 2022. 4. 21.
datepicker 달력으로만 입력 가능, 초기화 버튼, 한글 표시 입력란 생성 ~ 초기화 버튼 및 한글 표시, 해당 input type 속성을 readonly로 설정하기 위해 브라우저를 실행하자 마자 아래 코드 동작 $(function() { window.onload = function cleanDatepicker(){ //alert('aaaa'); // clear 버튼 생성 var old_fn = $.datepicker._updateDatepicker; $.datepicker._updateDatepicker = function(inst) { old_fn.call(this, inst); var buttonPane = $(this).datepicker("widget").find(".ui-datepicker-buttonpane"); $("clear").appendTo(bu.. 2022. 3. 25.
js 테이블 체크박스 데이터 한번에 전송하는 방법 - ajax로 배열 controller로 전송하여 VO에 담기 HTML의 각 태그 데이터를 선택자를 이용하여 변수에 담은 후 배열에 저장한다. 그 후 ajax를 통해 배열 데이터를 전송 function order(flag) { var isAdmin = ; var url = "/dit/apps/array123.nr"; var num_check=/^[0-9]*$/; var data = new Object(); var rowData = new Array(); var tdArr = new Array(); var checkbox = $("input[name=select]:checked"); // 인수확인버튼 클릭할때에만 메일번호 생성 /* if(flag == "a2"){ var mailNum = get_MailNum(); }*/ //alert('메일번호: ' + mailNu.. 2022. 3. 23.
JSTL 사용해서 넘어오는 데이터에 따라 태그 속성 비활성화 시키기<c:if> input 태그 안에 문을 중첩하여 사용하면 input 태그 안에 readonly 속성을 상황에 맞게 조절 할 수 있다. 이와 같이 select 태그도 설정 가능하다 select 태그는 readonly 속성이 없기 때문에 disabled 속성을 사용한다. 직송 안양 2022. 3. 23.
movie 스토어 테스트 store -> movie.js 파일 테스트 관련 공식문서 https://jestjs.io/docs/mock-function-api Mock Functions · Jest Mock functions are also known as "spies", because they let you spy on the behavior of a function that is called indirectly by some other code, rather than only testing the output. You can create a mock function with jest.fn(). If no implementation is given jestjs.io 테스트를 진행할 코드 import axios from 'axio.. 2022. 2. 2.
jest를 이용한 테스트시 콘솔에 내용을 호출하지 않도록 설정 공식 문서 Jest CLI Options · Jest (jestjs.io) Jest CLI Options · Jest The jest command line runner has a number of useful options. You can run jest --help to view all available options. Many of the options shown below can also be used together to run tests exactly the way you want. Every one of Jest's Configuration options c jestjs.io package.json 파일 설정 수정 명령어 추가 "test:unit:silent": "jest --watchAll.. 2022. 2. 1.