function dateFormat(num){ if(!num) return ""; var formatNum = ''; // 공백제거 num=num.replace(/\s/gi, ""); try{ if(num.length == 8) { formatNum = num.replace(/(\d{4})(\d{2})(\d{2})/, '$1-$2-$3'); } } catch(e) { formatNum = num; console.log(e); } return formatNum; } function fn_update(seq) { $.ajax({ url : "/admin/getPopDetail.do", type : "post", data : { seq : seq }, dataType : "json", success : fun..