先看看效果:
var getData = ctx + "demo/table/list";
$("#table").bootstrapTable(
{
dataType : "json",
method : 'post',
cache : false,
url : getData,
columns : [
{
checkbox : true
},
{
field : 'userId',
title : '用户ID'
},
{
field : 'userCode',
title : '用户编号'
},
{
field : 'userName',
title : '用户姓名'
},
{
field : 'userPhone',
title : '用户手机'
},
{
field : 'userEmail',
title : '用户邮箱'
},
{
field : 'userBalance',
title : '用户余额'
},
{
title : '操作',
align : 'center',
formatter : function(value, row, index) {
var actions = [];
actions
.push('<a class="btn btn-danger btn-xs" href="javascript:;" on