精选分类

文章列表

1.6k 1 分钟

# 编写 java 代码 native 调用本地方法库 123456789101112131415161718public class HelloMyJni{ public native void helloWorld(); public native void helloWorld2(int a); public native void helloWorld3(); static{ System.loadLibrary("hello"); } public static void...
672 1 分钟

# JavaScript 代码 1234567891011121314151617Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "H+": this.getHours(), //小时 "m+": this.getMinutes(), //分...
485 1 分钟

# JavaScript 代码 12345678910111213141516function copy() { var input = document.createElement('input'); input.setAttribute('readonly', 'readonly'); // 防止手机上弹出软键盘 input.setAttribute('value',...
1.3k 1 分钟

# java 代码 工具类 123456789101112131415161718192021222324public class RandomStringUtils { private static final char[] codeSequence = new char[]{'1', '2', '3', '4', '5', '6',...
3.4k 3 分钟

# 原文链接 https://www.jianshu.com/p/1e189c14aa98 # 网络请求 123456789101112131415161718192021222324252627282930313233343536373839function get() { var xhr = new XMLHttpRequest(); var url = "请求地址"; xhr.open("POST", url);...
1.3k 1 分钟

# 后端代码 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849//Excel 生成代码 // -------------------------------// 发送到前端ByteArrayOutputStream os = new ByteArrayOutputStream(); ServletOutputStream sout = null; BufferedInputStream bis = null; BufferedOutputStream bos =...
7.6k 7 分钟

# 添加依赖 12345678910111213<!-- Log4j2 门面API--><dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId>...
1.3k 1 分钟

# 异步任务学习笔记 123456789101112131415161718192021222324252627282930313233343536373839404142@SpringBootTestclass Demo3ApplicationTests { @Test void contextLoads() { run(); } private void run() { CompletableFuture<Void> f1 = CompletableFuture.runAsync(()...
84 1 分钟

# 拉取远程仓库全部分支 git clone // 拉取仓库 git branch -a // 列出远程仓库所有分支 git checkout -b 本地分支名 origin/远程分支名 // 切换分支
3.2k 3 分钟

# pom 文件 12345678<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-cache</artifactId></dependency><dependency>...