Pullrefresh_with_tab.html is really data interaction and resolves the first pull-up load in the demo is invalid

Source: Internet
Author: User

In order to make a such effect come out really is painstaking, a pit has a pit, said more is tears, share to everybody, long long experience bar ....

First page frame is still the same, import mui.min.css,mui.min.js,mui.pulltorefresh.js,mui.pulltorefresh.material.js, the main structure is the same, the following is the interaction problem.

Pullrefresh_with_tab.html the principle of this demo is to first all the pages of the data splicing out, so the first time you have to get all the data, and then according to the title of the stitching, there are three headings, please note the title value, this is the value you want to send the request pass

Here are three UL to install the list, and then send a request to put the content under their respective headings

This gets the data under each heading, followed by a paging problem, my side is to do an additional request, re-write a method, because the previous method to get all the data, this method is to request a single header data,

After the page is written, it is invoked by pull-up loading.

Through the pull-up load to page, but I did a very annoying problem, that is, I first pull the load after the pull on the failure, it is necessary to use the second time to find that the original as long as the settimeout is deleted, here is a delay effect

This is my personal encounter problems, and share with you, may not be detailed enough, do not understand the place or have problems in the place to welcome comments, private chat ...

Pullrefresh_with_tab.html is really data interaction and resolves the first pull-up load in the demo is invalid

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.