1 枚举基础 自定义一个枚举类很简单, 不过类型关键字是 enum, 不是 class, 也不是 interface.public enum Action { UP, DOWN, LEFT, RIGHT} 自定义的 Action枚举 本质上还是一个 class, 反编译可以看到如下定义:public ...
分类:
编程语言 时间:
2019-01-23 00:24:03
阅读次数:
208
一、vs code 的常用快捷键 1、注释: a) 单行注释:[ctrl+k,ctrl+c] 或 ctrl+/ b) 取消单行注释:[ctrl+k,ctrl+u] (按下ctrl不放,再按k + u) c) 多行注释:[alt+shift+A] d) 多行注释:/** 2、移动行:alt+up/do ...
分类:
其他好文 时间:
2019-01-23 00:09:46
阅读次数:
258
https://stackoverflow.com/questions/6203231/which-http-methods-match-up-to-which-crud-methods Create = PUT with a new URI POST to a base URI returning ...
分类:
Web程序 时间:
2019-01-22 17:34:00
阅读次数:
203
marquee标签:设置文字滚动效果。 格式:<marquee>文字滚动</marquee> 属性:direction:设置滚动方向:left / right / up / dowm <marquee direction="right">文字滚动</marquee> scrollamount:设置滚 ...
分类:
Web程序 时间:
2019-01-22 14:26:01
阅读次数:
215
实现思维 开始之前先废话几句,Android系统没有提供上拉加载的控件,只提供了下拉刷新的SwipeRefreshLayout控件。这个控件我们就不废话,无法实现上拉刷新的功能。现在我们说说上拉加载更多的功能实现 思维步骤: 代码部分 页尾布局 pull_up_refresh.xml: 适配器代码: ...
分类:
移动开发 时间:
2019-01-21 17:54:24
阅读次数:
147
Java代码 HttpServletRequest获取请求路径 1、 //Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTT ...
分类:
Web程序 时间:
2019-01-21 15:57:54
阅读次数:
179
在项目中使用Entity Framework的Code First模式,进行数据迁移时,Migration文件夹中存放的是每一次Entity的修改如何同步到数据的操作方法,每个文件中都只有Up和Down这两个方法。例如第一次数据迁移时,会创建数据表,在程序包管理控制台中输入命令:add-migrat ...
分类:
其他好文 时间:
2019-01-20 20:01:35
阅读次数:
192
#root@c7hp:~ excp c78 "zkServer.sh start"[1] 11:49:44 [FAILURE] c78 Exited with error code 1Starting zookeeper ... FAILED TO WRITE PIDStderr: ZooKeepe ...
分类:
其他好文 时间:
2019-01-20 15:03:23
阅读次数:
214
在 svn 中,我们可以使用 svn ci 来提交代码,使用 svn up 来更新代码,这就是别名,相当于 Linux 中的 alias,git 同样也可以设置别名 常用的别名设置: ...
分类:
其他好文 时间:
2019-01-20 13:54:55
阅读次数:
177
The capital of Berland has n multifloor buildings. The architect who built up the capital was very creative, so all the houses were built in one row. ...
分类:
其他好文 时间:
2019-01-20 00:59:33
阅读次数:
188