<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>主页</title>
<link href="/layui/css/layui.css" rel="stylesheet">
<link href="/bootstrap-4.1.3-dist/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<input type="hidden" th:value="${session.uame}" id="uamek">
<input type="hidden" th:value="${session.utype}" id="utypek">
<input type="hidden" id="uCodekl">
<!-- Button trigger modal -->
<!-- Button trigger modal -->
<!-- 详情 -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">详情</span>
</div>
<input type="text" class="form-control" id="uMemo"
value="">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
</div>
</div>
</div>
</div>
<!--修改-->
<div class="modal fade" id="updatempleModal" tabindex="-1" aria-labelledby="updatempleModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="updatempleModal">修改</h5>
<button type="button" class="close" data-dismiss="modal" aria-label
根据权限显示layui自定义按钮
最新推荐文章于 2023-07-12 10:52:40 发布
本文主要介绍了如何在layui前端框架中根据用户权限动态显示或隐藏自定义按钮,通过JavaScript实现动态加载和控制按钮的可见性,从而达到权限管理的效果。
摘要由CSDN通过智能技术生成