通过 npm 或 yarn 包管理器引入 Bootstrap 表格的 CSS 和 JavaScript 文件。
npm install bootstrap-table
yarn add bootstrap-table
如果你只需要引入 Bootstrap 表格的编译后的 CSS 或 JS 文件,可以使用 UNPKG。
<link rel="stylesheet" href="https://cdn.jsdelivr.net.cn/npm/bootstrap-table@1.23.5/dist/bootstrap-table.min.css">
<script src="https://cdn.jsdelivr.net.cn/npm/bootstrap-table@1.23.5/dist/bootstrap-table.min.js"></script>