Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ page isELIgnored="false" %>
- <%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <!-- Custom fonts for this template-->
- <link rel="stylesheet" href="/resources/css/fontawesome-free/all.min.css" />
- <!-- Custom styles for this template-->
- <link href="/resources/css/sb-admin-2.min.css" rel="stylesheet">
- <!--<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css">-->
- <link rel="stylesheet" href="/webjars/bootstrap-table/1.16.0/bootstrap-table.min.css">
- </head>
- <body>
- <table
- id="table"
- data-toggle="table"
- data-height="460"
- data-ajax="ajaxRequest"
- data-search="true"
- data-search-on-enter-key="true"
- data-side-pagination="server"
- data-pagination="true"
- data-page-list="[10, 25, 50, 100, 200, All]"
- >
- <thead>
- <tr>
- <th data-field="id">编号</th>
- <th data-field="name">专业名称</th>
- <th data-field="isvalid">是否有效</th>
- <th data-field="createDate">创建时间</th>
- </tr>
- </thead>
- </table>
- <script src="/webjars/jquery/3.6.0/jquery.min.js"></script>
- <script src="/webjars/popper.js/2.9.3/umd/popper.min.js"></script>
- <!--<script src="webjars/bootstrap/5.1.0/js/bootstrap.bundle.min.js"></script>-->
- <script src="../../resources/js/bootstrap.bundle.min.js"></script>
- <!-- Core plugin JavaScript-->
- <!-- <script src="../../resources/js/sb/jquery.easing.min.js"></script>-->
- <script src="/webjars/bootstrap-table/1.16.0/bootstrap-table.min.js"></script>
- <!-- Custom scripts for all pages-->
- <!--<script src="../../resources/js/sb/sb-admin-2.min.js"></script>-->
- <script>
- function ajaxRequest(params) {
- params.data["type"] = "subjectDic";
- var url = "/ajaxHandler.do";
- $.get(url+'?' + $.param(params.data)).then(function(res){
- params.success(res);
- })
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement