(转)Ext.Button点击事件的三种写法
摘要:
var buttonclick = function() {
//Ext.MessageBox.alert("提示", "是否保存?")
//Ext.MessageBox.confirm("提示", "是否保存更改的数据?");
Ext.MessageBox.show({ title: "提示", msg: "是否保存更改的数据?", icon: Ext.MessageBox.QUESTION, buttons: { "yes": "是", "no": "否", "cancel": "取 消" }, closable: true, progress: true });
}
var button = new Ext.Button({ name: "mybutton", text: "添加", handler: buttonclick }); //定义的同时通过handler方式指定事件
button.render("mypanel"); //指定显示区域,mypanel是html页中的div 阅读全文
posted @ 2009-09-02 00:09 masterfy 阅读(3612) 评论(0) 推荐(0)
浙公网安备 33010602011771号