Worth sharing bootstrap table instance _javascript tips

Source: Internet
Author: User
Tags button type

The bootstrap table encapsulates a complete set of data table components, copying the following code to estimate the basic functionality you need, and not having a look at the manual can be quickly familiar with the example I gave.

Client

<! DOCTYPE html>  

It is to be noted that

1, bootstrap table can be the front page pagination can also be back-end pagination, where we use the back-end pagination, back-end pagination needs to return containing

Total : number of records this key seems to be fixed, I see the document is not found can be modified to other

rows: Record Collection key values can be modified DataField you define yourself as you want.

{"Total
 ": " 
 Rows": [
 {"id": 1, ' name ': ' Sallency ', ' Age ':},
 {"id": 1, "name": "Sallency", "Age": (
 {"id": 1, "name": "Sallency", "Age":},
 {"id": 1, "name": "Sallency", "Age":},
 {"id": 1, "name": " Sallency "," Age ":}]
}

As on the JSON data (of course my foreground set the expected data type is json,php directly encode a ["Total" =>200, "Rows" =>[[],[],][,][,] "The array is done, convenient)

2, and its request backend is the content format passed by default for Application/json I am accustomed to using convenient x-www-form-urlencoded

If you want to further study, you can click here to learn, and then attach 3 wonderful topics:

Bootstrap Learning Course

Bootstrap Practical Course

Bootstrap Table Use Tutorial

Bootstrap Plugin Usage Tutorial

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.