- 博客(5)
- 收藏
- 关注
原创 resetpwd.js
$().ready(function(){ var email = getUrlParam("email"); $("#email").html(email); // 获取验证码 $(".getcode").click(function(){ if(timmer==null){ coldtime = 60; timmer = setInterval(countDown,1000); }
2021-11-10 18:00:34 76
原创 login.js
login.js $().ready(function(){ $("#login").css("background-color","teal"); $("#login").css("color","white"); // 登录判断 const token = localStorage.getItem("token"); if(token){ window.location.href = "./index.html"; } $
2021-11-10 17:01:39 529
原创 Java 单例(饿汉)
public class Singleton2 { private static Singleton2 instance = new Singleton2(); private Singleton2(){ } public static Singleton2 getInstance(){ return instance; } }
2021-10-18 12:28:50 50
原创 Java 单例(懒汉)
public class Singleton { private static Singleton instance; private Singleton(){ } public static Singleton getInstance(){ if(instance==null){ instance = new Singleton(); } return instance; } }
2021-10-18 12:27:26 52
原创 Java 线程池
Java 线程池 import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class ThreadPool { public static void method() throws Exception{ long beginTime = System.currentTimeMillis(); ExecutorService executor = Executors.newFixe
2021-10-18 12:23:31 46
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人