var YAHOO = function() {
return {
/**
* Yahoo presentation platform utils namespace
*/
util: {},
/**
* Yahoo presentation platform widgets namespace
*/
widget: {},
/**
* Yahoo presentation platf ...
- 09:25
- 浏览 (1369)
- 论坛浏览 (1804)
- 评论 (8)
Ext中给某个元素添加一个事件可以用 xxx.on(eventName,handler) 的方法,我想问一下要是我想传参数给处理函数handler该怎么做?
比如我给一个按钮添加一个click事件,点击显示字符串str:
Ext.onReady(
function(){
var myBtn = new Ext.Button(Ext.get('myBtn'),{text:'Hello'});
var str = "hello world!";
myBtn.on('click',show);
});
var show = function(){
//aler ...
- 16:40
- 浏览 (1926)
- 论坛浏览 (2058)
- 评论 (4)
- 浏览: 3295 次

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
问一个关于js的语法问题
sp42 写道http://developer.yahoo.com/yui/th ...
-- by maxwell_hu -
问一个关于js的语法问题
http://developer.yahoo.com/yui/theater/ ...
-- by sp42 -
问一个关于js的语法问题
sp42 写道这是Power Constrcutor, 用于 singleton ...
-- by maxwell_hu -
问一个关于js的语法问题
这是Power Constrcutor, 用于 singleton ...
-- by sp42 -
问一个关于js的语法问题
maxwell_hu 写道i_love_sc 写道在EXT里面有很多这样的写法。 ...
-- by hax






评论排行榜