首页 > Web开发 > 详细

EXTJS on事件

时间:2016-05-13 12:14:27      阅读:297      评论:0      收藏:0      [点我收藏+]

http://www.iteye.com/problems/59467

 

on( String eventName, Function handler, [Object scope], [Object options] ) : void
给对象添加事件处理器 (addListener的简写形式)
给对象添加事件处理器 (addListener的简写形式。)
参数:

eventName : String
监听的事件类型
handler : Function
事件调用的方法
scope : Object
(可选)处理方法执行时的作用域 (this 的引用)。 如果被忽略。默认为触发事件的对象。
options : Object
可选 包含处理器配置的对象。

 

 

on( String eventName , Function handler , [Object scope] , Object options ) : void

eventName : String
事件名称The type of event to listen for
handler : Function
处理函数The method the event invokes
scope : Object
执行处理函数的作用域。“this”对象指针(optional) The scope in which to execute the handler function. The handler function‘s "this" context.
options : Object
(可选的)(optional) @method

EXTJS on事件

原文:http://www.cnblogs.com/givemeanorange/p/5487058.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!