Events have similar lifecycles. Once you call a Libevent function to set up an event and associate it with an event base, it becomes initialized. At t ...
分类:
其他好文 时间:
2016-07-04 21:56:23
阅读次数:
282
会话1: 会话2: [root@localhost ~]# stap -v -e 'probe process("/usr/local/mysql56/bin/mysqld").function("*Item_*").call{ if( tid()==7625) printf("%s:%s %d \ ...
分类:
数据库 时间:
2016-07-04 21:52:26
阅读次数:
179
如果结构体定义如上,使用下面的代码,将会报错 c30.c: In function 'AddItem':c30.c:30:22: error: invalid application of 'sizeof' to incomplete type 'struct list'pNew=malloc(si ...
分类:
其他好文 时间:
2016-07-04 20:37:39
阅读次数:
177
Build Settings ->Apple LLVm 7.1-Preprocessing ->Enable strict checking of objc_msgSend Calls 值改为 NO ...
分类:
其他好文 时间:
2016-07-04 20:28:39
阅读次数:
160
SELECT控件操作的JS代码示例 1 检测是否有选中 if(objSelect.selectedIndex > -1) { //说明选中 } else { //说明没有选中 } 2.动态创建select function createSelect(){ var mySelect = documen ...
分类:
Web程序 时间:
2016-07-04 20:27:06
阅读次数:
179
公司使用插件,随便封装一下非常好用,这里我们预想做一个不再显示的功能,修改了alertify.js里面的一个create函数function clickDelegate,屏蔽了点击消失的功能,然后把这个alert记录到Cookie中,以后读取cookie有值则不再显示, ...
分类:
Web程序 时间:
2016-07-04 20:19:26
阅读次数:
892
$("body").on("touchstart", function(e) { e.preventDefault(); startX = e.originalEvent.changedTouches[0].pageX, startY = e.originalEvent.changedTouches ...
分类:
移动开发 时间:
2016-07-04 18:48:14
阅读次数:
203
简单地记下jquery实现回车事件,代码如下: 全局: $(function(){document.onkeydown = function(e){ var ev = document.all ? window.event : e; if(ev.keyCode==13) { $('#FormId). ...
分类:
Web程序 时间:
2016-07-04 18:35:00
阅读次数:
147
var arr = [1,2,3,4,5,6,7,8,9,10]; function Arandom(a,b){ return (Math.random() > 0.5) ? 1 : -1;; } arr.sort(Arandom); console.log(arr) ...
分类:
编程语言 时间:
2016-07-04 17:13:08
阅读次数:
1097
$("#checkAll").bind("click", function () { debugger; if (this.checked) { $("[name = checkItem]:checkbox").attr("checked", true); } else { $("[name = c ...
分类:
Web程序 时间:
2016-07-04 17:11:55
阅读次数:
279