pagination(2)
-
Vue, Pagination, Vuetify table을 이용한 페이징 네이션
vuex, axios, vuetify를 이용한 페이징 네이션 axiox를 이용하여 백엔드에서 데이터를 받아온다. 연결 방법은 crispypotato.tistory.com/21 여기! vuetify data-table : vuetifyjs.com/en/components/data-tables/#header Data table component The data table component is used for displaying tabular data in a way that is easy for users to scan. It includes so... vuetifyjs.com template script 설명 => footer-props가 페이징네이션을 변경 watch에 deep옵션이 있어서 배열 내부의..
2021.02.24 -
Mongoose 페이징 처리 (Node)
몽구스를 이용하여 페이징 처리 방법 post라는 모델에 있는 게시물을 페이징 처리 모델 //모델 const Post = require('../models/post') 프론트 요청값 // 프론트에서 요청하는 페이지번호, 요청하는 최대 게시물 숫자 //해당 페이지 번호 const page = req.params.page //최대 요청 수 const maxPost = req.params.maxPost 페이징 함수 const paging = (page, totalPost, maxPost) => { // 페이지에 나오는 최대 게시물 수 const maxPost = maxPost // 페이지에 나오는 최대 페이지 수 const maxPage = maxPost // 받아오는 page가 스트링일경우 Number형으로 ..
2021.02.24