- 博客(9)
- 收藏
- 关注
原创 阿里云短信
private static final String ACCESSKEY_ID = "LTAIBPzjrAhbdISO";private static final String ACCESSKEY_SECRET = "qD0akARRo0dPD8arrZmWqH6yHMgOlQ";private static final String SIGN_NAME = "智美";private static final String SMS_TEMPLATE = "SMS_122281118";pr
2022-04-18 20:03:11 252
原创 六位验证码
public class VerifyCodeUtils {public static String getVerifyCode(){ //生成6位验证码 return String.valueOf(new Random().nextInt(899999) + 100000);}}
2022-04-18 17:02:28 1236
原创 swagger2 换肤
引入依赖: com.github.xiaoymin knife4j-spring-ui 3.0.3注入依赖:mvn install:install-file -Dfile=E:\maven\knife4j-spring-ui-3.0.3.jar -DgroupId=com.github.xiaoymin -DartifactId=knife4j-spring-ui -Dversion=3.0.3-beta-6 -Dpackaging=jar访问:http://localh
2021-10-12 10:08:01 195
原创 java 计算时间差是哪天
-2: 前天-1:昨天0: 今天1:明天2: 后天public int date(){ int nowTime = Calendar.getInstance().getTimeZone().getRawOffset(); Long today = (System.currentTimeMillis() + nowTime ) / 86400000; Long seleceTime = (startDate.getTime() + no...
2021-04-20 15:29:46 155
原创 长按保存图片
<div id="capture" style="padding: 10px; background: #f5da55"><h4 style="color: #000; ">页面内容</h4></div><div id="imgDiv"><div class="imgDiv_title">生成的图片</div><img class="imgDiv_img" src="" /></div>
2020-08-13 14:10:56 554
原创 缓动 返回顶部
<script>functiongo(){$('html,body').animate({'scrollTop':0},500);};</script>...
2020-07-21 10:27:28 119
原创 不可复制
* {moz-user-select: -moz-none;-moz-user-select: none;-o-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none;user-select: none;}
2020-07-09 14:47:43 184
原创 禁右
<script language=javascript> if (window.Event) document.captureEvents(Event.MOUSEUP); function nocontextmenu(){ event.cancelBubble = true event.returnValue = false; return false; } function norightclic...
2020-07-09 14:47:03 154
原创 video获取屏幕高度播放暂停
html代码:<video muted id="js_video1" class="sd_img js_video video-js vjs-default-skin" controlswidth="100%" autoplay ><source src="http://brothers-php.544.jlbbc.cn/Uploads/mp4/{$list.shipin}" t...
2020-06-30 14:56:22 336
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人