码迷,mamicode.com
首页 >  
搜索关键字:event    ( 11031个结果
UITouch触摸事件
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
jquery插件开发示例
/****通用部分 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和ExtJS的timeOut超时问题和event事件处理问题
对jQuery来说,超时可以直接设置timeout参数,并在error事件中捕获第二个参数,如果是“timeout”则表明捕获了超时事件,非常清楚。 例子: $.ajax({ type: "POST", contentType: "application/json", url: "../ws/MyS
分类:Web程序   时间:2016-02-22 20:47:57    阅读次数:367
iOS事件(触摸,移动,晃动)
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
HUD 1171 Big Event in HDU(01背包)
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键盘监听操作
//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中的事件三
javaScript中的事件三 先看两种错误的写法,他们的目的都是:添加两个事件; 错误方式一: window.onload=function (){ alert('event 1'); } window.onload=function (){ alert('event 2') } 错误方式二: w
分类:编程语言   时间:2016-02-21 19:57:40    阅读次数:270
Apache的三种工作模式
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(事件对象)详解
event 事件对象总结
分类:编程语言   时间:2016-02-20 23:01:25    阅读次数:1293
2014年辛星解读Javascript之DOM之冒泡和捕获
上篇博客提到了Javascript事件绑定函数的三个參数。第一个是一个event。第二个是一个function。第三个是一个布尔变量。它用于指定事件传递的顺序,分为冒泡和捕获两种方式,接下来我们将揭开它的神奇面纱,彻底的解读它。 首先看例如以下代码: <html> <body> <div id =
分类:编程语言   时间:2016-02-20 21:37:29    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!