UITouch触摸事件 主要为三个方法 1.-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{2.3. UITouch *touch = [touches anyObject];4. CGPoint point = [to
分类:
其他好文 时间:
2016-02-22 23:31:36
阅读次数:
328
/****通用部分 BEGIN *****/$.fn.sidebar = function(options) { var defaults = { event: 'click' }, settings = $.extend({}, defaults, options); return this.ea
分类:
Web程序 时间:
2016-02-22 22:04:55
阅读次数:
296
对jQuery来说,超时可以直接设置timeout参数,并在error事件中捕获第二个参数,如果是“timeout”则表明捕获了超时事件,非常清楚。 例子: $.ajax({ type: "POST", contentType: "application/json", url: "../ws/MyS
分类:
Web程序 时间:
2016-02-22 20:47:57
阅读次数:
367
1 //开始触摸 2 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 3 { 4 NSLog(@"你触摸了屏幕"); 5 } 6 //移动 7 - (void)touchesMoved:(NSSet *)touches
分类:
移动开发 时间:
2016-02-22 17:05:48
阅读次数:
147
Big Event in HDU Problem Description Nowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Comp
分类:
其他好文 时间:
2016-02-22 15:51:41
阅读次数:
212
//js监听键盘事件 document.onkeydown = function (event) { var e = event || window.event || arguments.callee.caller.arguments[0]; alert(e.keyCode);//打印对应键盘的键值
分类:
Web程序 时间:
2016-02-22 11:50:48
阅读次数:
158
javaScript中的事件三 先看两种错误的写法,他们的目的都是:添加两个事件; 错误方式一: window.onload=function (){ alert('event 1'); } window.onload=function (){ alert('event 2') } 错误方式二: w
分类:
编程语言 时间:
2016-02-21 19:57:40
阅读次数:
270
Web服务器Apache目前一共有三种稳定的MPM(Multi-ProcessingModule,多进程处理模块)模式。它们分别是prefork,worker和event,它们同时也代表这Apache的演变和发展。如何查看我们的Apache的工作模式呢?可以使用httpd-V命令查看,如我安装的Apache2.4版本。$/usr/local/apach..
分类:
Web程序 时间:
2016-02-21 18:43:42
阅读次数:
12104
上篇博客提到了Javascript事件绑定函数的三个參数。第一个是一个event。第二个是一个function。第三个是一个布尔变量。它用于指定事件传递的顺序,分为冒泡和捕获两种方式,接下来我们将揭开它的神奇面纱,彻底的解读它。 首先看例如以下代码: <html> <body> <div id =
分类:
编程语言 时间:
2016-02-20 21:37:29
阅读次数:
204