bootstrap 基本用法
获取页面数据:
$(function(){
$("#bootstrapTable").bootstrapTable({
url: "{:\\thinkked)判断是否被选中
$.ajax({
url: "{:\\think\\Url::build('distribution/is_auto')}",
type: "post",
data: {status: is_auto},
dataType: "json",
success: function (data) {
if ( === 1) {
(, {icon: 1, shift: 6});//弹出警示框并自动关闭
} else {
(, {icon: 2, shift: 6});
}
},
error: function (e) {
('服务器异常,请重试', {icon: 2, shift: 6});
}
});
});function detailTable(row, $detail) {
var cur_table = $('<table></table>').find('table');
$(cur_table).bootstrapTable({
url: "{:\\think\\Url::build('distribution/index')}",
idField: 'id',
search: true,
cache: false, //是否使用缓存
sortOrder: 'desc',
striped: true, //是否显示行间隔色
detailView: true, //开启详细视图功能
pagination: true,
sidePagination: 'server',
pageNumber: 1,
pageSize: 15,
pageList: '[15, 30, 1
bootstrap 基本用法 来自淘豆网m.daumloan.com转载请标明出处.