As shown in the picture, the guestbook inserts text at the end of TXT every time, and new messages when browsing the web are at the bottom. I want to insert new messages at the beginning of TXT.
Please tell me how to do it.
路过2017-11-17 08:32:37
If you are reading from the database, just output it in reverse chronological order.
If you implement it with jq, jq has a method of inserting content in front.