各种技术实现
a标签打电话
https://blog.csdn.net/qq_45696288/article/details/108410547
分页代码
https://blog.csdn.net/m0_55710969/article/details/121347904
模态框来回移动
https://www.jb51.net/article/224463.htm
js访问controller 发布后
https://blog.csdn.net/weixin_42659261/article/details/89003294
jsp用Button向controller层传ID
<button type="button" class="btn btn-primary btn-sm" data-bs-toggle="modal" data-bs-target="#myModal" onclick="upDateCF(${l.user_id})" id="upDateCF"> 更改 </button> <script> $("#myModal").modal("hide"); function upDateCF(user_id) { // var a=user_id; var xhttp = new XMLHttpRequest(); xhttp.open("POST", "/ygUpdateFindById?id="+user_id, true); xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xhttp.send(); alert(user_id); } </script>
jsp页面点击更新按钮向模态框传参数
<button type="button" class="btn btn-primary btn-sm" data-bs-toggle="modal"data-bs-target="#myModal" onclick="upDateCF(${l.user_id},'${l.name}','${l.age}')" > 更改 </button>
<script> $("#myModal").modal("hide"); function upDateCF(user_id,name,age) { $('#user_id').val(user_id); $('#name').val(name); $('#age').val(age);
} </script>
<!-- 模态框-从菜鸟拿过来的 -->
<!--https://www.runoob.com/bootstrap5/bootstrap5-modal.html-->
<div class="modal" id="myModal">
<div class="modal-dialog">
<div class="modal-content">
<table class="table text-nowrap" >
<thead>
<!-- 模态框头部 -->
<div class="modal-header">
<h4 class="modal-title">姓名:<input type="text" readonly id="name"/></h4>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
</thead>
<!-- 模态框内容 --> <div class="modal-body"> <tr> <td> ID <input type="text" id="user_id" readonly /></td> </tr> <tr> <td>年龄<input type="text" id="age"/></td> </tr> </div>
动态锁死最大日期
https://blog.csdn.net/weixin_42059737/article/details/91410902
BootStrap图标样式
java实现图片上传功能,并返回图片保存路径
https://blog.csdn.net/myme95/article/details/89215389
没备案前访问nginx实现
input默认取当天的值
<input name="" id="date_info" type="date" placeholder="请输入时间"/>
-------------------------------------------------------------------------------------
<script> $(document).ready(function () { var time = new Date(); var day = ("0" + time.getDate()).slice(-2); var month = ("0" + (time.getMonth() + 1)).slice(-2); var today = time.getFullYear() + "-" + (month) + "-" + (day); $('#date_info').val(today); }) </script>
详解a标签中href=javascript:的几种用法
https://wenku.baidu.com/view/7a781cb7d2f34693daef5ef7ba0d4a7302766ce2.html
input非空 添加required
<input name="phone" placeholder="手机号" required/>
Linux定时清空文件夹
touch rmphoto.sh
#!/bin/bash rm -rf /home/robot2/micro/tempphoto/*
vi /etc/crontab
0 0 * * * root /home/robot2/micro/rmphoto.sh