티스토리 뷰
>> 삭제
list_applicant.js에서 controller로 보낼 때,
내 구상은,
선택한 것(check ==true)인 데이터를 선별해서 보내려고 했는데
그냥 데이터를 통으로 보내서
서버(뒷단)에서 데이터 걸러내서
값 설정해줄 것!!
>> list_applicant.js
파라미터로 넘겨주는 것은 화면에 뿌려진 데이터!!
(즉, 검색으로 인해 걸러진 데이터 전부. check=true, false 값 저장된 뒤 뿌려짐)
>> controller.java
>>
>> list_applicant.js에서
삭제 버튼 눌렀을 때, 이벤트 실행 후
데이터 리스트를 불러오는데 삭제 된 것이 그대로 노출되는 현상
callback을 동시에? 엇비슷하게 호출하고 있어서 물렸던 것.
지연 로딩 시간 줄 것.
<html>
<label><input type="button" @click="deleteApplicant">삭제</label>
</html>
/*
* [삭제] 버튼 눌렀을 때,
* 삭제 이벤트 후 데이터 리스트 로딩
* 콜백 함수가 곧바로 이어졌을 때, 물려서 삭제된 데이터가 계속 뜨는 이슈
* -> 시간 설정을 해주면, 삭제된 데이터가 제외되어 데이터 목록 로딩
*/
deleteApplicant: function(){
let $this = this;
$this.deleteApplicant_sub(); //삭제 수행
setTimeout($this.recruitAppList, 200); //목록 로딩
},
'ERROR > WEB' 카테고리의 다른 글
[java/spring]an out of memory error has occurred (0) | 2023.10.30 |
---|---|
[WEB/개발자모드 디버깅]console에 data가 object로 출력 (0) | 2023.09.08 |
JSON parse error (0) | 2022.11.07 |
tomcat version 8.5 only supports j2ee 1.2 1.3 1.4 and java ee 5 6 and 7 web modules (0) | 2022.11.04 |
Server Tomcat v8.5 Server at localhost failed to start. (0) | 2022.10.31 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 변수
- BAEKJOON
- 기본선택자
- css
- A%B
- input type 종류
- caption-side
- ScriptTag
- html atrribute
- border-spacing
- empty-cell
- html a tag
- html base tag
- 입력양식
- Java
- html input type
- selcetor
- CascadingStyleSheet
- 외부구성요소
- 스크립태그
- html
- text formatting
- improt
- initialized
- JavaScript
- 미디어 태그
- typeof
- html pre
- html layout
- scanner
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함