bootstrap-table showColumns属性无法显示下拉列表
<script type="text/javascript">
$(document).ready(function () { initTable(); })
function initTable(){
$('#weirtable').bootstrapTable({
method:'post',
toolbar:'#toolbar',
striped:false, //是否行间隔色显示
cache:false,//是否试用缓存,默认为true
pagination:true, //s是否分页
sortable:true, //是否启用排序
sortOrder:"name asc", // 排序方式
pageNumber:1, //初始化加载第一页,默认第一页
pageSize:6 , //每页的记录行数
// pageList:[6,20,50] , //可供选择的每页行数
url:'/webloadlist',
queryParamsType:'', //默认为limit, 在默认情况下,传给服务器的参数为;offset,limit, 设置为''则传给服务器的参数为pageSize,pageNumber
sidePagination:"client",// 分页方式,client为客户端分页,server为服务端分页
strictSearch:true,
clickToSelect:true, //是否启动点击选中行
search:false,
// height:$(window).height() - 500,
columns:[
{
title:"",
field:'state',
checkbox:true,
align:'center',
valign:'middle'
},{
title:'Name',
field:'name',
align:'left',
valign:'middle',
sortable:true,
class:'text-overflow',
width:120,
url:"url_for('/detail')"
},{
title:'Urls',
field:'url',
width:450,
align:'left',
valign:'middle',
class:'text-overflow',
switchable:true
},{
title:'加载总耗时(ms)',
field:'loadPageAll',
align:'center',
valign:'middle',
sortable:true,
switchable:true
},{
title:'direct',
field:'direct',
align:'center',
valign:'middle',
sortable:true
},{
title:'TTFB',
field:'ttfb',
align:'center',
valign:'middle',
sortable:true
},{
title:'Request',
field:'request',
align:'center',
valign:'middle',
sortable:true
},{
title:'domReady',
field:'domReady',
align:'center',
valign:'middle',
switchable:false,
sortable:true
},{
title:'loadEvent',
field:'loadEvent',
align:'center',
valign:'middle',
sortable:true
},{
title:'RequestNum',
field:'requestnum',
align:'center',
valign:'middle',
sortable:true
},{
title:'RequestSize',
field:'requestsize',
align:'center',
valign:'middle',
sortable:true
},{
title:'重定向',
field:'ifredirect',
align:'center',
valign:'middle',
sortable:true
}
],
showColumns:true, // 是否显示列
minimumCountColumns:2,
showRefresh:true, // 是否刷新
showToggle:true
});
};
</script>
boostrap-table 中 我已经设置了showCloumns,但页面上点击无法显示显示下拉列表,审查元素又是有下拉列表的,请大神指教
ringa_lee