above
Sample Code
Var page = 1; // the current page number var flagNoData = false; // false var allpage; // The total page number, which will be retrieved from the background by function showAjax (page) {$. ajax ({url: "", type: "", data: "", success: function (data) {// showContent (); if (page> = data. allpage) {// the current page number is greater than or e
-------page Scroll to the bottom of the query data unlimited load no bottom display no more--------Principle: 1, enter the URL into page 2, a page in the ajax--controller---query database---Controller to get the data HTML tag stitching Ajax back to HTML3, Ajax get splicing string added to the specified location display 4, JS get window size when scrolling to the
principle: When the scroll bar reaches the bottom, the next page of content is executed.Judging conditions requires understanding three concepts:1.scrollHeight the height of real contentHeight of the 2.clientHeight window, which is the height of the content you can see in the browserThe hidden portion of the 3.scrollTop window, that is, the distance the scroll bar scrollsIdeas:1. Using the Fixed position loading box2. Use the $ (window). Scroll () method to trigger whether to load3. Through the
Mobile apps can help attract more new users and increase user interaction and dialogue. But you have to let users think of you, how to stand out in dozens of apps on a mobile phone, is the key to test app operation. In order to build a successful app, developers need to focus on the long term and should not be limited to the amount of app downloads. Should learn to listen to the user's opinion, according to
Unlimited classification and addition, deletion, and modification of tree structure data [DEMO download] And treedemo
Reading directory
• Unlimited grading• Jstree plug-in• Demo• Create a Region object• Meet the Data Object Dto of the jstree plug-in• Data Conversion• Initial
Unlimited ratingsMany times we are unsure of the hierarchy of hierarchy, and this time we need to use infinite grading.When it comes to infinite grading, it is also called recursive. (it is said that frequent recursion is a very expensive performance), where we need to design a table mechanism to store infinitely graded data. Of course, the following are self-tinkering results, non-standard. Who has better
interaction with the client-(void) Onsocket: (Asyncsocket *) sock didacceptnewsocket: (Asyncsocket *) newsocket{NSLog (@ "Accept socket!");The Newsocket object needs to be stored, otherwise the object will be automatically freed.[_socketarray Addobject:newsocket];The Newsocket object is used to listen to whether a client that has been connected will send a messageDo you have any data sent over the time of unlimit
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.