在 Java 中,堆被划分成两个不同的区域:新生代 ( Young )、老年代 ( Old )。新生代 ( Young ) 又被划分为三个区域:Eden、From Survivor、To Survivor。这样划分的目的是为了使 JVM 能够更好的管理堆内存中的对象,包括内存的分配以及回收。堆的内存 ...
分类:
其他好文 时间:
2019-08-07 13:21:09
阅读次数:
104
public abstract static class OnScrollListener { /** * Callback method to be invoked when RecyclerView's scroll state changes. * * @param recyclerView ...
分类:
其他好文 时间:
2019-08-04 19:42:41
阅读次数:
107
/** * Set a listener that will be notified of any changes in scroll state or position. * * @param listener Listener to set or null to clear * * @depre ...
分类:
其他好文 时间:
2019-08-04 19:37:27
阅读次数:
94
环境准备 第一步安装 与事件相关的包我们再安装一次 运行项目 将server/index.js项目改成import的方式 node 不支持import 修改配置文件package.json为 创建.babelrc文件 安装babel包 我们使用npm run dev会报错 解决办法是安装 当当当,运 ...
分类:
移动开发 时间:
2019-08-03 10:52:54
阅读次数:
735
Status Motivation Public Interfaces Proposed Changes Remote Topics, Partitions Aggregation Cycle detection Config, ACL Sync Internal Topics Remote Clu ...
分类:
其他好文 时间:
2019-08-01 14:36:58
阅读次数:
117
主流的匹配字符有两种 [\u4e00-\u9fa5]和[\u2E80-\u9FFF],后者范围更广,包括了日韩地区的汉字 ...
分类:
其他好文 时间:
2019-08-01 10:31:01
阅读次数:
134
git 去除本地所有没有保存的修改,参考 "How do I revert all local changes in Git managed project to previous state?" 知道运行 References 1. "git clean 小结" 2. "How do I reve ...
分类:
其他好文 时间:
2019-07-28 17:33:37
阅读次数:
87
这个属性告诉编译器函数不会返回,这可以用来抑制关于未达到代码路径的错误。 C库函数abort()和exit()都使用此属性声明: Once tagged this way, the compiler can keep track of paths through the code and suppr ...
分类:
其他好文 时间:
2019-07-23 19:02:15
阅读次数:
256
```css
/*滚动条整体样式*/
body::-webkit-scrollbar { width: 5px; height: 1px;
}
/*滚动条滑块*/
body::-webkit-scrollbar-thumb { border-radius: 5px; -webkit-box-shad... ...
分类:
其他好文 时间:
2019-07-21 01:37:10
阅读次数:
145