Difference between refresh and refreshOptions in boostrapTable

Source: Internet
Author: User

Difference between refresh and refreshOptions in boostrapTable

When bootstrapTable is used, there are two methods to refresh and refreshOptions for refreshing data. The usage is similar:

<Table id = "event_table"> </table>... <script> $ ("# event_table "). bootstrapTable ('refresh', {url: new_url}); $ ("# event_table "). bootstrapTable ('refreshuptions ', {url: new_url}); </script>

Refresh: obtain data from the server again.

RefreshOptions: Update bootstrapTable options and obtain data from the server. The difference with refresh is that the option set by refreshOptions will be used as the default option for the next request to server data.

In addition, when using refreshOptions, pay attention to the bootstrapTable version. Some old versions do not support this method.

Set the timeout (timeout) method when BootstrapTable requests data

The above section describes the differences between the refresh and refreshOptions of boostrapTable. I hope it will help you. If you have any questions, please leave a message and I will reply to you in time. Thank you very much for your support for the help House website!

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.