Made a JS pagination tag with ellipsis for the new version of the plugin

text

I was flattered to find that several people were using the Bangumi Chasing Plugin I wrote yesterday. There are design problems in previous versions, and I have been lazy to solve them. Today, I took time to analyze the existing problems and found that there are two main problems and two secondary problems:

 TODOList

Let the browser do what the browser can, I think so. So, instead of splicing html strings, the server should feed the necessary jsons to the front end. Of course, I'm not a professional front-end, and I don't have much front-end knowledge, so I'll try to use native JS. The expected effect of this TODO is that the browser parses Json data and operates the DOM to generate pages.

When I first wrote this gadget, it was just a Demo. I never cared about paging. Since someone said so, I will make a page. I spent two hours writing one last night Simple JS pagination tags with ellipses are almost complete.

 Paging label

I think setting styles in the background is optional, but this time I will take the opportunity to sort out the disorderly CSS. The current version will cause the style of other elements of the page to be disordered, and it is not convenient for individuals to modify.

It is not said that JQuery is excluded, although WP has introduced JQuery itself.

I've been working on Electron+React+WebRTC these days, and I'm dizzy. After work, I can't help sighing that the front end is really messy and difficult.

Zimiao haunting blog (azimiao. com) All rights reserved. Please note the link when reprinting: https://www.azimiao.com/4690.html
Welcome to the Zimiao haunting blog exchange group: three hundred and thirteen million seven hundred and thirty-two thousand

Comment

*

*

Comment area

  1. Panda A 03-23 18:17 reply

    The front end is really messy and difficult.

  2. Broad tree 03-24 22:34 reply

    It's OK that the front end is messy, but the trouble is that after learning it, I found it obsolete... Since I had node.js, now even the back end has sometimes pushed it to the front end.