Bootstrap table and raster pagination examples _javascript tips

Source: Internet
Author: User
Tags prev

Stitching table Please run the following code directly: replace

Bootstrap.css jquery-1.12.3.min.js Bootstrap-paginator.min.js "

<! DOCTYPE html>  

Results

 

Attention

1,BOOTSTRAP3 page ID for #example must be UL tag, 2, in JS option in Bootstrapmajorversion:3

1,BOOTSTRAP2 page ID #example must be div tag, 2, in JS option Bootstrapmajorversion:2

The paging source code explains:

Extension instructions

Above I was stitching the form, you can splice into grid layout, is not more hanging?

Mosaic Grid Demonstration

$.each (eval ("+ Data +")). List, function (index, item) { 
$ ("#list"). Append (' <div class= col-sm-col-md-' data- Toggle= "modal" data-target= "#myModal" style= "Text-align:center;" >
<div class= "thumbnail" style= "HEIGHT:PX;" ><a href= "Javascript:return ()" >
</img></a> <div class=" caption
><a href= "Javascript:return ()" target= "_blank" > ' + item.title + ' <br><small>by @mdo </small > </a> 
 

background-Acquired data format

{"
PageCount": 2,
"CurrentPage": 1,
"list": [
{
"id":],
"title": "Printing public security Management Information System",
" Detail ":" Patent No.: ZL 222222 High efficiency, improve the quality of work. "
},
{"
id ":"
title ":" Key units visiting Personnel Management system ",
" detail ":" Patent No.: ZL 233-shaped, improve work efficiency, improve the quality of working. "
}
]

The above is a small set to introduce the bootstrap table and grid pagination Examples of detailed, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

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.