new JC.Eventer()
jcc2d的事件对象的类
Methods
-
emit(type, ev)
-
事件对象的触发事件函数
Name Type Description typeString 事件类型
evJC.InteractionData 事件数据
-
off(type, fn){this}
-
事件对象的事件解绑函数
Name Type Description typeString 事件类型
fnfunction 注册时回调函数的引用
Returns:
Type Description this -
on(type, fn){this}
-
事件对象的事件绑定函数
Name Type Description typeString 事件类型
fnfunction 回调函数
Returns:
Type Description this -
once(type, fn){this}
-
事件对象的一次性事件绑定函数
Name Type Description typeString 事件类型
fnfunction 回调函数
Returns:
Type Description this