本系列的上一篇文章《Monkey源码分析之事件源》中我们描述了monkey是怎么从事件源取得命令,然后将命令转换成事件放到事件队列里面的,但是到现在位置我们还没有了解monkey里面的事件是怎么一回事,本篇文章就以这个问题作为切入点,尝试去搞清楚monkey的event架构是怎么样的,然后为什么是这...
分类:
其他好文 时间:
2015-02-10 21:28:10
阅读次数:
371
mysql定时器是系统给提供了event,而oracle里面的定时器是系统给提供的job。废话少说,下面创建表:create table mytable (id int auto_increment not null,name varchar(100) not null default '',int...
分类:
数据库 时间:
2015-02-10 11:06:12
阅读次数:
194
1 var iReporterID = 0; 2 var row = 0; 3 4 var $D = YAHOO.util.Dom; 5 var $E = YAHOO.util.Event; 6 var $C = YAHOO.util.Connect; 7 var $V = YAH...
分类:
Web程序 时间:
2015-02-10 09:12:41
阅读次数:
243
接收普通消息type TMsgType = (event, text, image, voice, video, location, link); TMessage = Record ToUserName: String; FromUserName: String; Creat...
分类:
微信 时间:
2015-02-09 22:56:53
阅读次数:
488
事件event对象当事件发生时,会向调用函数传递一个event对象,event对象记录当前事件发生时的环境信息。一个事件只能对应一个event对象,并且event对象是短暂存在的。DOM中的event对象的使用方法1、在HTML标记中,通过事件来调用函数,向函数传递一个event参数,该参数就是一个...
分类:
其他好文 时间:
2015-02-09 18:05:18
阅读次数:
106
(1) jQuery的Id选择器: $("#btnShow")(2) 事件绑定函数 bind() $("#btnAdd").bind("click", function(event) { $("#divMsg").show(); });(3) 显示和隐藏函数. show()和hide()(4) 修....
分类:
Web程序 时间:
2015-02-09 18:01:30
阅读次数:
146
jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combinat...
分类:
Web程序 时间:
2015-02-08 21:54:06
阅读次数:
201
1. 系统默认modal出来的动画效果默认是从屏幕底部爬出来的- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ secondVC *second = [[secondVC alloc] init]; [self pr....
分类:
移动开发 时间:
2015-02-08 21:52:05
阅读次数:
774
示例1:关于事件对象MSIE:window.event, cancelBubble, returnValue,srcElement, button(鼠标按键,1,4,2,左中右)W3C:event, stopPropagation(), preventDefault(), target, butto...
分类:
Web程序 时间:
2015-02-08 15:14:46
阅读次数:
170
一般我们在不同activty等组件之间通信的时候,都用到了如下的模式:
是定义一个接口,需要关注该事件的地方来实现这个接口。然后事件触发的地方来注册/取消注册这些对该事件感兴趣的控件,比如如下文章描述的情况:
使用Event Bus模式解耦Android App组件间通信...
分类:
其他好文 时间:
2015-02-08 11:37:58
阅读次数:
223