<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)" :show-header="true" :height="$store.state.clientHeight - 134" :header ...
分类:
其他好文 时间:
2020-03-05 13:18:07
阅读次数:
178
(请观看本人博文—— "《详解 字符流》" ) 字符缓冲流 和 字节缓冲流(高效字节流)运用了同样的思想 —— 缓冲区思想 其实这种思想涉及到了Java的一种设计模式 —— 装饰模式 (对于此知识点,在此篇博文中不做讲解,将在本人后续博文中进行讲解) [toc] 字符缓冲流: (高效字符转换流) 这 ...
分类:
其他好文 时间:
2020-03-05 10:43:08
阅读次数:
76
StringBuffer 字符串变量(线程安全 在多线程的状况能够保证线程的安全运行)StringBuilder 字符串变量(非线程安全 运行更加迅速) /*对待线程安全问题,我们可以把一个字符串的改变看成两部来实现,首先就是字符串的索引位置存放元素* 然后继续增大Size的值 在单线程的情况下如果 ...
分类:
编程语言 时间:
2020-03-05 01:30:04
阅读次数:
80
1 """ 2 Given n, how many structurally unique BST's (binary search trees) that store values 1 ... n? 3 Example: 4 Input: 3 5 Output: 5 6 Explanation: ...
分类:
其他好文 时间:
2020-03-04 23:30:47
阅读次数:
60
目标Demo是通过JavaServerSocket和Socket通信实现客户端发送消息和发送文件到服务器,服务器接收到消息和文件,并且实现解决inputStream.read()的阻塞问题思路。服务器端创建ServerSocket服务器serverSocket=newServerSocket(port);//首先创建一个服务端口//等待客户端的连接请求socket=serverSocket.acc
分类:
移动开发 时间:
2020-03-04 23:15:06
阅读次数:
103
commitLog 删除文件的策略指定时间到了,磁盘不足,人工删除,满足任一条件,判断文件是否过期或者磁盘不足,是则删除,一批次最多删除 10 个文件。 commitLog,consumeQueue,indexFile 的删除策略如下图: commitLog 尾部是有空洞的,当一个消息在当前文件放不 ...
分类:
其他好文 时间:
2020-03-03 20:51:15
阅读次数:
166
Flux: View层将用户的动作转化为action,并发送Action层,Action层里面预先写好了应对脚本,在完成一系列的处理后,使用dispatch告诉Store层执行变更,Store层因为提前在dispatch注册了变更规则,所以现在Store可以变更数据,同时在数据变更后,通知View层 ...
分类:
Web程序 时间:
2020-03-03 19:03:53
阅读次数:
97
The LED Night Light Factory explains the 9 advantages of using LED night light: 1. The LED night light covers almost the entire visible range. The tra ...
分类:
其他好文 时间:
2020-03-03 15:03:53
阅读次数:
52
开启倒计时,直接保存到vuex中,且存储到本地持久化 // state.js const runTime = localStorage.getItem('time'); paymentRunTime:runTime // mutations.js TimeReduction(state) { thi ...
分类:
其他好文 时间:
2020-03-03 09:20:04
阅读次数:
190
Spring Data: ElasticSearch 基于 spring data API 简化 elasticSearch操作,将原始操作elasticSearch的客户端API 进行封装 。Spring Data为Elasticsearch项目提供集成搜索引擎。Spring Data Elast ...
分类:
编程语言 时间:
2020-03-02 21:06:16
阅读次数:
146