jquery - Bootstrap-Table 1.15.4 分页每页行数下拉菜单不起作用
问题描述
引导表 bootstrap-table.min.js 1.15.4 引导引导 bootstrap.min.js 4.3.1 Jquery jquery-min.js 3.4.1
页面加载得很好。但是,选择每页行数的下拉列表不起作用。表代码在 bootstrap-table 的在线编辑器上运行良好。我已经尝试过使用不同的表,但它不起作用。
https://jsfiddle.net/ashishvermapu/f54jweyc/1/
<table class="table table-striped" data-pagination="true" data-toggle="table" data-search="true">
<script src="webjars/jquery/3.4.1/jquery.min.js"></script>
<script src="webjars/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="webjars/bootstrap-table/1.15.4/dist/bootstrap-table.min.js"></script>
解决方案
Bootstrap 4 依赖于 popper.js。我导入了以下 js 来解决问题。
<script src="webjars/popper.js/1.14.7/umd/popper.min.js"></script>
推荐阅读
- java - 为什么我的方法没有返回任何东西?
- javascript - React Native Firestore 无限循环
- mysql - 用mysql实现分页(limit和offset)
- java - JavaFx 应用程序中的无效 SQL 命令
- javascript - 带有动态内容 javascript 的 Alert()
- mysql - 我想在mysql中拆分结果你能帮我吗?
- python - 将 N 人分成 2 人一组
- typescript - 如何在打字稿中键入具有动态字段名称的树
- c++ - 从给定的向量中找到所有 4 个集合,使得它们的总和等于目标,并且不应该有任何重复的集合。(leetcode)(O(n ^ 3))
- sql - 如何为具有多个评分标准的评分系统正确设计数据库