lambda表达式 new Thread(()->System.out.println("多线程学习")).start(); lambda表达式只能有一行代码的情况下才可以简化成一行,如果有多行,就需要用代码块 必须是函数式接口接口(函数式接口就是只包含唯一一个抽象方法) 多个参数可以去掉参数类型, ...
分类:
其他好文 时间:
2021-05-24 03:25:08
阅读次数:
0
// 全局路由导航拦截 router.beforeEach((to, from, next) ? { // ... if (to.path '/login') { // 如果是登录页面路径,就直接next() next() } else { // 其他页面路径 let token = session ...
分类:
其他好文 时间:
2021-05-24 02:26:50
阅读次数:
0
桌面新建一个文本文档(新建文本文档.txt)将文件名修改为 Demo01.java,内容如下: public class Demo01 { public static void main(String[] args) { int a = 10; System.out.println(a); } } ...
分类:
编程语言 时间:
2021-05-24 00:55:02
阅读次数:
0
39 插件、zepto 插件 常用插件网站 jquery官网插件 https://plugins.jquery.com/ 百度 CSDN swiper https://www.swiper.com.cn github jq22 使用过程 找 用: 2.1 下载 2.2 文件拷贝到用的地方 自定义插件 ...
分类:
其他好文 时间:
2021-05-24 00:54:18
阅读次数:
0
栈实现队列 思路 在数据结构中,栈本身就具有倒序的作用,因此,如果在一组元素全部进栈后,最后进栈的会最先被弹出,而队列是最先进入的元素就最先被弹出。 如图:如果以 1 2 3 4 分别进入栈和队列,左为栈的弹出结果,右为队列的出队结果,刚好相反 于是,如果把栈得到的结果再次进行一次入栈操作,再出栈时 ...
分类:
其他好文 时间:
2021-05-24 00:53:44
阅读次数:
0
①精确到纳秒 long startTime=System.nanoTime();//获取开始时间 /* 测试的程序代码; */ long endTime=System.nanoTime();//获取结束时间 System.out.println("运行时间是:"+(endTime-startTime ...
分类:
编程语言 时间:
2021-05-24 00:33:53
阅读次数:
0
package experiment6; public interface ISoundable { public void increaseVolume(); public void decreaseVolume(); public void stopSound(); public void pl ...
分类:
其他好文 时间:
2021-05-24 00:30:07
阅读次数:
0
使用云服务器git clone某个项目时,遇到如下问题: fatal: Out of memory, malloc failed (tried to allocate 2000000000 bytes) 百度后找到如下解决方法: sudo mkdir -p /opt/temp sudo dd if= ...
分类:
其他好文 时间:
2021-05-24 00:26:08
阅读次数:
0
Y7000 window+Ubuntu环境配置总结 双系统装机与环境初始化配置 装机 WiFi+显卡+时间 Nvidia显卡问题 Google浏览器快捷键 搜狗输入法+报错+LOG OUT ...
分类:
系统相关 时间:
2021-05-24 00:14:25
阅读次数:
0
Vue.js 技术揭秘 https://ustbhuangyi.github.io/vue-analysis/v2/prepare/ Vue源码阅读 - 文件结构与运行机制 https://segmentfault.com/a/1190000015440980 ...
分类:
其他好文 时间:
2021-05-23 23:34:12
阅读次数:
0