The list page in the background, in the order of the point down down a bit, the point on the drop down a bit, and then the foreground also change, this how to achieve
Source: Internet
Author: User
The list page in the background, in the order of the point upward move a bit, the point drops down one bit, and then the front desk also changes, how this is achieved?
The list page in the background, in the order of the point upward move a bit, the point drops down a bit, and then the front desk also changes, how to achieve this? In detail, novice, thank you!
------Solution--------------------
The database has this field or Time field,
The list shows the order by that field.
Every time you click, you update the information of a single data or modify its field values.
And then back in the list table.
For example, you have a list, each field information has a cn_time (time) or a Cn_index (value) field "by the way: index is the key word in the database"
SELECT * FROM List ORDER by Cn_time
Every time you click, it updates the ID data of its resources.
Update list Set cn_time = Now;
, so that you can achieve what you call the function,
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