1.检测数组 (判断一个值是不是数组) var color = ["red", "green", "blue"]; (1) if (color instanceof Array) {} (2) if (Array.isArray(value)) {} 2.转换方法 var color = ["red ...
分类:
编程语言 时间:
2017-04-01 01:33:50
阅读次数:
176
#!/bin/bash[-f/etc/init.d/functions]&&./etc/init.d/functionspid=/application/nginx/logs/nginx.pidnginx=/application/nginx/sbin/nginxRED_COLOR=‘\E[1;31m‘GREEN_COLOR=‘\E[1;32m‘YELLOW_COLOR=‘\E[1;33m‘BLUE_COLOR=‘\E[1;34m‘PINK=‘\E[1;35m‘SHAN=‘\E[31;5m‘R..
分类:
系统相关 时间:
2017-03-31 22:02:48
阅读次数:
155
#!/bin/bash[-f/etc/init.d/functions]&&./etc/init.d/functionspid=/application/nginx/logs/nginx.pidnginx=/application/nginx/sbin/nginxRED_COLOR=‘\E[1;31m‘GREEN_COLOR=‘\E[1;32m‘YELLOW_COLOR=‘\E[1;33m‘BLUE_COLOR=‘\E[1;34m‘PINK=‘\E[1;35m‘SHAN=‘\E[31;5m‘R..
分类:
系统相关 时间:
2017-03-31 22:02:36
阅读次数:
153
1.清空绘图区 清空绘图区是使用指定的背景颜色填充canvas,使用gl.clearColor设置背景色。gl.clearColor(red, green, blue, alpha)。openGL的颜色取值返回是0-1。 调用gl.clear()函数,用clearColor指定的背景色清空绘图区域。... ...
分类:
Web程序 时间:
2017-03-30 22:29:37
阅读次数:
233
选择器: 标签选择器 p{ background-color:purple;} 类选择器 .one{ color:red;} ID选择器 #a{ font-size:25px;} 行内样式: <p style="color:blue;"> </p> 链接外部样式表,地址为one.css。<link ...
分类:
编程语言 时间:
2017-03-30 21:33:13
阅读次数:
195
background:#1b6c9b;filter:alpha(opacity=100finishopacity=50style=1startx=0,starty=0,finishx=0,finishy=150)progid:DXImageTransform.Microsoft.gradient(startcolorstr=red,endcolorstr=blue,gradientType=1);-ms-filter:alpha(opacity=100finishopacity=50style=1startx..
分类:
Web程序 时间:
2017-03-28 11:48:14
阅读次数:
225
ValueAnimator colorAnim = ObjectAnimator.ofInt(this, "backgroundColor", /*Red*/0xFFFF8080, /*Blue*/0xFF8080FF); colorAnim.setDuration(3000); colorAnim... ...
分类:
移动开发 时间:
2017-03-27 16:34:39
阅读次数:
273
Description Mr. B and Mr. M like to play with balls. They have many balls colored in blue and red. Firstly, Mr. B randomly picks up N balls out of the ...
分类:
其他好文 时间:
2017-03-25 22:34:13
阅读次数:
198
http://www.lydsy.com/JudgeOnline/problem.php?id=1570 (题目链接) 题意 给出$m$个航班,每天只能做一次飞机,有$T$人从起点到终点,问最晚到达的人最早什么时候到。 Solution 枚举答案分层建图最大流判断即可。之前的流量不要清空。 细节 ? ...
分类:
Web程序 时间:
2017-03-25 13:45:42
阅读次数:
169
本文是学习《matplotlib for python developers》的一点笔记plot画图时可以设定线条参数。包括:颜色、线型、标记风格。1)控制颜色颜色之间的对应关系为b blue c cyan g green k blackm magenta r red w white y yello ...
分类:
其他好文 时间:
2017-03-23 16:42:55
阅读次数:
2546