문자전송 jsp에서 시간초 재는 구문 추가

This commit is contained in:
hehihoho3@gmail.com 2024-12-02 16:37:48 +09:00
parent 1750558c17
commit 4c65a729bc

View File

@ -1265,7 +1265,9 @@ function sendMsgAjax_advc(){
var url = "/web/mjon/msgdata/sendMsgDataAjax_advc.do";
// 시작 시간
const startTime = new Date();
$.ajax({
type: "POST",
url: url,
@ -1273,6 +1275,12 @@ function sendMsgAjax_advc(){
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" */