1.组织默认事件阻止默认事件,h5默认的input type='date'在某些浏览器和android设备上没有效果,这时要调用h5+的时间选择器,但是要组织input默认的click事件,代码如下: //选择时间 $("#end_time").on("click",function(e...
分类:
编程语言 时间:
2015-07-07 12:50:46
阅读次数:
127
drop procedure if exists p_hello_world;create procedure p_hello_world(in v_id int)begin if (v_id > 0) then select '> 0'; elseif (v_id = 0...
分类:
数据库 时间:
2015-07-07 12:42:09
阅读次数:
179
[objc] view
plaincopyprint?
@interface UIView (RectCorner)
@end
@implementation UIView (RectCorner)
- (void)setCornerOnTop {
UIBezierPath *maskPath;
maskP...
分类:
其他好文 时间:
2015-07-07 09:38:37
阅读次数:
252
为了更好的工作和学习,最近新入手一台MacBook pro。在装Android studio时遇到如下问题:解决办法如下:点击:https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement-macosx然后点击蓝色字体...
分类:
移动开发 时间:
2015-07-07 09:32:45
阅读次数:
251
nth_element()函数
头文件:#include
作用:nth_element作用为求第n大的元素,并把它放在第n位置上,下标是从0开始计数的,也就是说求第0小的元素就是最小的数。
如:a[start,end]元素区间。排序后a[n]就是数列中第n+1大的数(下标从0开始计数)。要注意的是a[start,n),
a[n,end]内的大小顺序还不一定。只能确定a[...
分类:
其他好文 时间:
2015-07-06 23:29:22
阅读次数:
179
DB120 TTL线连接1.解压文件安装USB TTL PL2303HX 驱动2.插上usb转ttl设备3.串口调试4.连接ttl线到db1205.The END
分类:
数据库 时间:
2015-07-06 23:22:28
阅读次数:
372
1 #import "AppDelegate.h" 2 3 @interface AppDelegate () 4 5 @end 6 7 @implementation AppDelegate 8 9 10 - (BOOL)application:(UIApplication *)appl...
分类:
移动开发 时间:
2015-07-06 23:14:08
阅读次数:
219
iphone苹果手机上用html5的video方式播放视频时,在ipad上是默认原来大小的,而在iphone上是默认全屏播放的。解决办法:HTML里video必须加上webkit-playsinline属性<videoid="player"width="480"height="320"webkit-playsinline>end
分类:
移动开发 时间:
2015-07-06 20:00:23
阅读次数:
136
在zabbix_agentd上准备监控脚本#监控指标有
TIME_WAIT
CLOSE_WAIT
FIN_WAIT1
ESTABLISHED
SYN_RECV
LAST_ACK
LISTEN
[root@zabbix-client~]#cat/usr/local/zabbix/etc/tcp_connections.sh
#!/bin.bash
netstat-an|awk‘/^tcp/{++S[$NF]}END{for(ainS)printa,S[a]}‘|grep$1|awk‘..
分类:
其他好文 时间:
2015-07-06 19:59:30
阅读次数:
266
min_element()和max_element
头文件:#include
作用:返回容器中最小值和最大值。max_element(first,end,cmp);其中cmp为可选择参数!
闲言少叙,上代码,一看就懂:
#include
#include
using namespace std;
bool cmp(int a,int b)
{
return a<b;
}
i...
分类:
其他好文 时间:
2015-07-06 19:57:40
阅读次数:
121