Bootstrap Table 是一款輕量級表格插件,支援固定表頭、排序、分頁、單選、核取、搜尋與自訂欄位。

它基於 Bootstrap 3 開發,也能相容部分舊版介面。資料來源可用 data 屬性或 JavaScript 設定,並支援 AJAX 取得 JSON。
$("#table").bootstrapTable({
url: "data.json"
});
若用 data 屬性,也可在表格上設定 data-toggle="table" 與 data-url,不必額外寫 JavaScript。

某些版本若用屬性指定 formatter,可能只認函式,不認字串。此時可修改原始碼,讓字串也能對應到全域函式。
if (typeof that.header.formatters[j] === "function") {
value = that.header.formatters[j](value, item);
} else if (typeof that.header.formatters[j] === "string") {
if (typeof window[that.header.formatters[j]] === "function") {
value = window[that.header.formatters[j]](value, item);
}
}
整體來說,Bootstrap Table 適合需要快速做出資料列表的後台頁面。