this is my code: <tr *ngFor="let items of topics.data | paginate: { itemsPerPage: 5, currentPage: p }"> < tr> <div class="d-flex"> <pagination-controls (pageChange)="p = $event"...
vue-awesome-swiper, can be used in vue, but the swiper-pagination is empty and there is no paging effect. < div data-v-5818899c= " " class= "swiper-pagination " > < div > < swiper: options= "swiperOption " ref= "mySwiper " > <!-- slides --...
Server configuration: 4core 8G there are several nginx+rails+mongodb+redis+sidekiq services. where rails starts 2 worker, and one worker10 thread sidekiq concurrency is set to 15 how should I optimize or upgrade the server? ...
node.js reported an error while installing the package gyp verb ensuring nodedir is created usr local web-blog node_modules node-sass .node-gyp 8.11.1 gyp verb command install [ 8.11.1 ] gyp verb install input version string "8.11.1 " gyp verb ...
func DBGetAdd(t string, n string, v string) map[string]string { sql := "insert into "+t+"("+n+") values("+v+")" ret, err := DB.Exec(sql); d := map[string]string{} if err != nil { ...
how to get the height of the dom element and the scrolling distance. ...
1. An array of objects with tree structure [{id:0}, {id:1,parentId:0}, {id:2}, {id:3,parentId:1}, {id:4,parentId:0}, {id:5,parentId:3}] 2. It is required to finish in [{id:0}, {id:1,parentId:0}, {id:3,parentId:1}, {id:5,parentId:3} {id:4,pa...