| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- vscode
- 웹개발
- AJAX
- ChatGPT
- NanoBanana
- 코딩
- CSS
- error
- comfyui
- 스파르타코딩클럽
- 티스토리챌린지
- java
- SQL
- 깃허브
- spring
- HTML
- jQuery
- Eclipse
- 이클립스
- myBatis
- flux
- SQLD
- JavaScript
- 김영한
- 자바
- 오블완
- Firebase
- restapi
- Ai
- 배포
- Today
- Total
목록JavaScript (16)
푸들푸들
@Mapperpublic interface ActorMapper { List> selectActorList(Map paramMap);} SELECT actor_id actorId , first_name firstName , last_name lastName , last_update lastUpdate FROM actor LIMIT #{beginRow}, #{rowPerPage} @Service@Transactionalpublic class ActorService { @Autowired ActorMapper actorMapper; private final int ROW_PER_PAGE = 10; public List> getActorList(Integer currentPage) ..
@Mapperpublic interface DocMapper { int insertDoc(Doc doc); List selectDocList();} INSERT INTO doc( doc_no, doc_sign ) VALUES( #{docNo}, #{docSign} ) SELECT doc_no docNo , doc_sign docSign FROM doc @Service@Transactionalpublic class DocService { @Autowired DocMapper docMapper; public int addDoc(Integer docNo, String sign){ // sign 문잦 중 이미지에 해당하는 문자만 분리 후 이미지로 변환 String filena..
SakilaMapper.java@Mapperpublic interface SakilaMapper { // 1. 카테고리 별 영화 수 List> selectFilmByCategory(); // 2. 러닝타임(length)이 3시간 이상 / 2시간 이상 / 1시간 이상 / 1시간 미만인 영화 수 Map selectFilmByLength(); // 3. 대여료(rental_rate)가 4달러 이상 / 3달러 이상 / 2달러 이상 / 1달러 이상 / 1달러 미만인 영화 수 Map selectFilmByRentalRate(); // 4. 영화 등급(rating) 별 수 List> selectFilmRating(); // 5.가장 많은 배우가 참여한 영화 1~5위 List> selectFilmByActor..
대륙 추가 시중복 검사(대륙 확인) 후중복: alert('중복')중복X: 대륙추가 에 자동 입력대륙 추가 대륙 입력 대륙 확인 대륙 추가 result = Integer continentCnt (컨트롤러)result = 1 = count = 같은 값이 존재 -> 중복 ***@Mapperpublic interface DBMapper { Integer continentCnt(String continentName);}count 값 받기위해 Integer SELECT COUNT(*) FROM continent WHERE continent_name = #{continentName}@Controllerpublic class HomeController { @GetMappin..
답 선택 -> 결과확인 버튼 -> 정답/오답 -> 점수+1, 버튼 비활성화 --> 반복문 점수 : / 15 결과 확인 부분'btnQ\${index+1}'오류: jquery.min.js:2 Uncaught Error: Syntax error, unrecognized expression: #btnQ${index+1}-> \${index+1}(템플릿 리터럴 문법)이 해석되지 않고 그대로 처리됨 - jQuery--> '#btnQ'+(index+1) : 문자열 연결 연산자 사용 ***@Mapperpublic interface MbtiMapper { String selectMbti(Integer no);} SELECT mbti FROM mbti WHERE no = #{no} @Contro..
Rest APIlocalhost/country?currentPage=1--> localhost/country/1@RestControllerpublic class CountryRest { @Autowired CountryService countryService; // localhost/country?currentPage=1 @GetMapping("/country") public List> country(@RequestParam Integer currentPage){ List> list = countryService.getCountryListByPage(currentPage); return list; } // localhost/country2/1 @GetMapping("/country2/{curren..
@RestController @RestControllerpublic class UserRest { @GetMapping(path = "/userJson") public List> user(){ List> list = new ArrayList(); Map u1 = new HashMap(); u1.put("name", "user1"); u1.put("age", 20); list.add(u1); Map u2= new HashMap(); u2.put("name", "user1"); u2.put("age", 20); list.add(u2); Map u3 = new HashMap(); u3.put("name", "user1"); u3.put("age", 20); list.add(u3)..
HTML: 정적Javascript: 동적, 사용자와 상호작용--> "2" 출력HTML -> "1+1" 출력이벤트onclickonclick의 속성값 = jsonchange마우스를 뺄 때onkeydown키보드의 키를 눌렀을 때 데이터 타입(자료형)산술 연산자 +-*/propertise: .length.toUpperCase(): 대문자로.indexOf('문자'): '문자'의 인덱스값 .trim(): 공백 제거 대입 연산자 =variable / constant 선택자class: 그룹핑id: 한개만 특정span document.querySelector('선택할것') : 태그, id 등 선택하기document.getElementById('id').style : 특정 id에 style 적용하기--> JS로 바꾸기..