Skip to content

Commit 5edd32e

Browse files
committed
231005 Update 0612_CRUD3.md
1 parent aeafa8c commit 5edd32e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

notes/0612_CRUD3.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,22 @@
3030
- 조건2 : 수정 작업할 때 첨부된 파일이 있는지(수정파일O), 아닌지(수정파일X)
3131

3232
- [수정] 버튼 눌렀을 때, 데이터 1건조회 되는 기능 먼저 구현
33+
3334
- 글번호 누르면 글상세 팝업이 뜨고, 글제목 누르면 파일상세 팝업이 뜨도록 JSP 파일 href 부분 먼저 수정
35+
3436
- <script> 에서 function fn_selectonefile(no) 작성
37+
38+
- popupinitfile() 로 초기화
39+
- function popupinitfile(object) else문 내부에($("#file_notice_title").val(object.notice_title); 윗부분) json 데이터로 받아오는 항목들 잡는 코드 작성
40+
- var inserthtml = “<a href='javascript:filedownload()'>”;
41+
inserthtml += “<img src=’’ + object.logic_path + ‘’ />”;
42+
43+
이 부분에 if문 넣어서 파일 이름이 없을 때(빈값, null, undefined) 예외처리하도록 하고
44+
var selfile, var selfilearr, var lastindex 그리고 그 아래 if/else 코드 가져와서 우리가 구현하고 있는 기능에 맞게 구분 (파일 확장자가 .sql 로 뽑히면 안되니까, 이걸 수정해주는 작업)
45+
46+
Interthtml += “</a>”
47+
- 파일 미리보기를 위한 $("#previewdiv").empty().append(Interthtml); 입력$("#btnDeleteFile").show();
48+
- $("#action").val("U");
3549

3650

3751

0 commit comments

Comments
 (0)