码迷,mamicode.com
首页 > Web开发 > 详细

EXTJS on事件

时间:2016-05-13 12:17:31      阅读:485      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!