用法一:常量public enum MyColor{Red,Black,Blue}public enum Color { RED, GREEN, BLANK, YELLOW} enum为枚举类的关键字,使用方法与静态常量类似:MyColor m = MyColor.Black;用法二:switch....
分类:
编程语言 时间:
2015-07-17 09:37:42
阅读次数:
137
查看ES各个分片的状态$ curl -XGET http://127.0.0.1:9200/_cluster/health?pretty{ "cluster_name" : "elasticsearch_brew", "status" : "yellow", "timed_out" : fal...
分类:
其他好文 时间:
2015-07-16 18:18:26
阅读次数:
398
1.Tranform 转换(2D,3D)2D:div{margin:30px;width:200px;height:100px;background-color:yellow;/* Rotate div */transform:rotate(9deg);-ms-transform:rotate(9d...
分类:
Web程序 时间:
2015-07-11 18:24:15
阅读次数:
102
用法一:常量在JDK1.5之前,我们定义常量都是:publicstaticfianl....。现在好了,有了枚举,可以把相关的常量分组到一个枚举类型里,而且枚举提供了比常量更多的方法。Java代码publicenumColor {RED, GREEN, BLANK, YELLOW}用法二:switc...
分类:
编程语言 时间:
2015-07-10 12:49:42
阅读次数:
147
一.CSS背景:
背景颜色:background-color : #00ff00, yellow, rob(0,0,0), transparent
背景图片:background-image:url(…)
背景是否重复:background-repeat : repeat, no-repeat, repeat-y, repeat-x
放置背景图片:background-posit...
分类:
Web程序 时间:
2015-07-09 18:08:29
阅读次数:
158
@media print {color: red;}/* 手机等小屏幕手持设备 */@media screen and (min-width: 320px) and (max-width: 480px) {body {background: yellow;}}/* 平板之类的宽度 1024 以下设备...
分类:
其他好文 时间:
2015-07-06 11:44:30
阅读次数:
82
---------------------------------------------------------------------枚举:// main.c#include const int red = 0;const int yellow = 1;const int green = 2;i...
分类:
编程语言 时间:
2015-07-06 06:39:19
阅读次数:
146
yellow green blue gold red
分类:
其他好文 时间:
2015-07-01 23:24:52
阅读次数:
1709
原文地址http://blog.csdn.net/halazi100/article/details/41311837一 yum 简介 yum,是"Yellow dog Updater,Modified"的简称,是杜克大学为了提高RPM软件包安装性而开发的一种软件包管理器. 起初是由yel...
分类:
其他好文 时间:
2015-06-28 15:25:19
阅读次数:
141
CentOS 查看操作系统版本[root@oa ~]# cat /etc/redhat-releaseCentOS release 6.6 (Final)参考linux centos yum安装LAMP环境Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora...
分类:
其他好文 时间:
2015-06-27 18:05:21
阅读次数:
130