이호영 이호영 2024-12-02
문자전송 jsp에서 시간초 재는 구문 추가
@4c65a729bc0d24e70dc90216ac099dfa549d96ef
src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataView.jsp
--- src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataView.jsp
@@ -1265,7 +1265,9 @@
 	
 	
 	var url = "/web/mjon/msgdata/sendMsgDataAjax_advc.do";
-	
+	 // 시작 시간
+	const startTime = new Date();
+	 
 	$.ajax({
 		type: "POST",
 		url: url,
@@ -1273,6 +1275,12 @@
 		contentType: 'application/json',
 		dataType: 'json',
 		success: function (data) {
+			
+			 // 종료 시간
+			const endTime = new Date();
+			const elapsed = (endTime - startTime) / 1000; // 밀리초 -> 초로 변환
+			console.log(`경과 시간: ${elapsed}초`);
+			
 			console.log('data : ', data);
 			/*  message:"특정문구 일괄변환 치환문자 데이터가 없습니다."
 				status:"BAD_REQUEST" */
Add a comment
List