Leaderboards < Vacancies > Questions

Source: Internet
Author: User

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.

    1. Is there a separate activity data sheet for this event?

    2. 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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.