在bootstarpTable初始化的时候,添加一下代码
// 初始化表格
table.bootstrapTable({
url: $.fn.bootstrapTable.defaults.extend.index_url,
columns: [columnss],
//启用固定列
fixedColumns: true,
//固定右侧列数
fixedRightNumber: 1,
search:false,
//隐藏表格右侧搜索栏
showToggle:false,
showColumns:false,
showExport:false,
showSearch:false,
searchFormVisible:false,
});