const pageInfo = class{ constructor( pageLength = 5, navLength = 10) { this.pageLength = pageLength; this.navLength = navLength; } getPageInfo(){ this.totalPages = Math.ceil(this.total / this.pageLength); this.prevPage = this.currentPage - 1 > 0 ? this.currentPage > this.totalPages ? null : this.currentPage - 1 : null; this.nextPage = this.currentPage ..
HTML info content warning content ..
$(function(){ // -> ajax 가 시작될때 실행 ==> 우선순위1 (에러발생시에도 실행) $(document).ajaxStart(function (event) { console.log('ajaxStart',event); loading_page.style.display = 'block' }) // -> ajax 를 보낼때 실행 ==> 우선순위2 - (에러발생시에도 실행) .ajaxSend(function(event,request,settings){ //console.log('ajaxSend',event,request,settings); }) // -> ajax 가 성공일때 실행 ==..
확장자 mimType 변환const returnMimeTypes = (extension) => { let returnMime = ''; const ext = extension.trim().toLowerCase(); if(ext === 'bin'){ returnMime = 'application/octet-stream'; }else if(ext === 'doc'){ returnMime = 'application/msword'; }else if(ext === 'docx'){ returnMime = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'; }else if(ex..