Bootstrap 是最受欢迎的 HTML、CSS 和 JS 框架,用于开发响应式布局、移动设备优先的 WEB 项目。
//导出选中表数据
function getExport() {
$element = $(this);
var key = $element.attr('data-key');
var $bstable = $('[data-toggle="table"]');
var selections = $bstable.bootstrapTable('getAllSelections');
if(selections && selections.length > 0) {
var url = '${ctx}/scm/goods/exportGoods?';
var ids = []
$.each(selections, function(index, value) {
ids[index] = value.id
});
window.open(url + $.param({id: ids, key: key}, true), 'blank');
} else {
$(this).alertmsg('error',"请选择需要导出的商品");
}
}