1. CompletableFuture的介绍 在Java8时被引入,在包java.util.concurrent下,是Java多线程编程中的一个类,扩展了Future中很多功能,CompletableFuture是一个实现了接口Future和CompletionStage的类。 public cl ...
分类:
其他好文 时间:
2020-05-16 20:42:45
阅读次数:
71
最近使用 C# 调用 dll 中的 UpdateDriverForPlugAndPlayDevices() 方法去安装驱动,遇到了 “The system cannot find the file specified” 问题, 看着错误提示,是指系统没有找到指定文件,但是我检查硬盘,该文件确实存在, ...
class Singleton(object): def __new__(cls): # 关键在于这,每一次实例化的时候,我们都只会返回这同一个instance对象 if not hasattr(cls, 'instance'): cls.instance = super(Singleton, cl ...
分类:
编程语言 时间:
2020-05-16 17:03:32
阅读次数:
64
computer manager storage disk manager initialize disk choose GPT—— unallocated new simple volume Well Done! ...
分类:
其他好文 时间:
2020-05-16 11:02:18
阅读次数:
237
"计算属性" 模板内的表达式非常便利,但是设计它们的初衷是用于简单运算的。在模板中放入太多的逻辑会让模板过重且难以维护。例如: 在这个地方,模板不再是简单的声明式逻辑。你必须看一段时间才能意识到,这里是想要显示变量 的翻转字符串。当你想要在模板中多包含此处的翻转字符串时,就会更加难以处理。 所以,对 ...
分类:
其他好文 时间:
2020-05-16 00:14:15
阅读次数:
68
微信小程序Cannot read property 'setData' of undefined问题解决 Krystalcsdn 2020-03-08 23:57:39 300 收藏展开今天写小程序,需要读取窗口高度然后设置scroll-view高度,在this.setData时报错“Cannot ...
分类:
微信 时间:
2020-05-15 22:56:03
阅读次数:
133
原因:就如报错提示所描述的,不能重新定义$router,说明是重复定了$router。通常是因为在项目中安装了vue-router的依赖并且用Vue.use()使用了vue-router,还在index.html页面引入了vue-router.js文件。 解决方法有两种: 1. 去掉index.ht ...
分类:
其他好文 时间:
2020-05-15 19:51:07
阅读次数:
177
nginx安装lua模块 出现LIBLUAJIT 5.1.SO.2错误的解决方法 云栖社区 阿里云 https://yq.aliyun.com/articles/604301 nginx lua 启动nginx报错找不到libluajit 5.1.so.2 会当凌绝顶的个人空间 OSCHINA ht ...
分类:
其他好文 时间:
2020-05-15 11:33:04
阅读次数:
181
color: #666666; font-size: 16px; line-height: 22px; margin-top: 15px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-cl ...
分类:
Web程序 时间:
2020-05-14 19:41:59
阅读次数:
144
使用easyui窗口:以下是父页面 <html> <head> <title>定时调度管理</title> </head> <body width="100%" height="100%"> <table id="ListTable" title="定时调度管理" style="width: 100 ...
分类:
其他好文 时间:
2020-05-14 15:15:32
阅读次数:
181