240
世界上有2种人,一种懂二进制,另一种不懂二进制。
摘要: 1】map(): 接受一个函数,将数组中的所用元素用这个函数处理后方放入新的数组中返回 let arr = ["1", "3", "4", "23"] arr = arr.map(item => item * 2) console.log(arr) //[2, 6, 8, 46] 2】reduce( 阅读全文
posted @ 2022-07-08 13:48 _Origin 阅读(122) 评论(0) 推荐(0)
摘要: 1】数组解析 let arr = [1,2,3]; //以前我们想获取其中的值,只能通过角标 // let a = arr[0] // let b = arr[1] // let c = arr[2]; //ES6可以这样,a,b,c 将与arr中每个位置对应来取值 let [a,b,c] = ar 阅读全文
posted @ 2022-07-08 13:42 _Origin 阅读(96) 评论(0) 推荐(0)
摘要: 你懂吗? isEmpty/isNotEmpty/isNotBlanlk/isBlank/isAnyEmpty/isAnyBlank/isNoneBlank isEmpty系列 StringUtil.isEmpty() 是否为空,可以看到空格是会绕过去这种空判断因为是一个空格并不是严格的空值,会导致为 阅读全文
posted @ 2022-07-07 14:29 _Origin 阅读(98) 评论(0) 推荐(0)
摘要: @RestControllerAdvice是什么@RestControllerAdvice是⼀个组合注解,由@ControllerAdvice、@ResponseBody组成,⽽@ControllerAdvice继承了@Component,因此@RestControllerAdvice本质上是个Co 阅读全文
posted @ 2022-06-30 16:46 _Origin 阅读(287) 评论(0) 推荐(0)
摘要: https://baijiahao.baidu.com/s?id=1671721474930539766&wfr=spider&for=pc 阅读全文
posted @ 2022-06-30 16:40 _Origin 阅读(44) 评论(0) 推荐(0)
摘要: AOP(Aspect Oriented Programming,⾯向切⾯编程)是通过预编译⽅式和运⾏期动态代理实现程序功能的统⼀维护的⼀种技术。AOP是OOP的延续,是软件开发中的⼀个热点,也是Spring框架中的⼀个重要内容,是函数式编程的⼀种衍⽣范型。利⽤AOP可以对业务逻辑的各个部分进⾏隔离, 阅读全文
posted @ 2022-06-30 16:28 _Origin 阅读(294) 评论(0) 推荐(0)
摘要: @interface 用来定义一个自定义注解 在Java中,定义注解其实和定义接口差多不,只需要在interface前添加一个@符号就可以,即 @interface Zhujie{ }, 这就表明我们定义了一个名为 @Zhujie 的注解。 注解中的方法即为注解的元素,元素中不能包含参数,返回值只能 阅读全文
posted @ 2022-06-30 16:13 _Origin 阅读(1492) 评论(0) 推荐(0)
摘要: @Target、@Retention、@Document注解简介 源码样例: @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @Documented @Inherited public @interface MthCac 阅读全文
posted @ 2022-06-30 16:04 _Origin 阅读(527) 评论(0) 推荐(0)
摘要: 1.char数组(字符数组)->字符串 可以通过:使用String.copyValueOf(charArray)函数实现。 举例: char[] arr={'a','b','c'}; String string =String.copyValueOf(arr); System.out.println 阅读全文
posted @ 2022-06-28 15:10 _Origin 阅读(318) 评论(0) 推荐(0)
摘要: 转到 转到1 阅读全文
posted @ 2022-06-24 12:39 _Origin 阅读(45) 评论(0) 推荐(0)