The rule is this:
At the start of the event, 1-3 were vacant,
When a user reaches the required number of likes (that is, the right x number), it can replace the vacancy,
Excuse me, what is the idea of writing such a ranking?
Ask for ideas ...
If there is a demo better ...
Reply content:
The rule is this:
At the start of the event, 1-3 were vacant,
When a user reaches the required number of likes (that is, the right x number), it can replace the vacancy,
Excuse me, what is the idea of writing such a ranking?
Ask for ideas ...
If there is a demo better ...
Look at you. Do you want the user to update in real time without leaving the page or if the user enters again to see the update. Re-entry should be good to do, first to check the data in the presence of 1-3 data, no time, on the UL third Li behind append can be, some words, directly empty UL, fill the entire UL can. If you are using some MVVM framework, as long as the data changes, the DOM will be updated automatically without having to go to JS to change the DOM
If the top three users are not satisfied, you tell the front end with the default avatar and nickname
Ajax timed to request, to detect whether the back-end data to meet the requirements, when there is data to meet the requirements, the relevant information returned
Does this mean that this is not being refreshed on the page in real time? This is a good one.
Is there a separate activity data sheet for this event?
When the user enters or refreshes this page, to read the data in the database, the user table should have a number of praise of the field, according to this like the number of columns in descending order to order by
read, the top two vacancies
I don't know, is that what I understand?
Ajax timed requests.