惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
小众软件
小众软件
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Martin Fowler
Martin Fowler
P
Proofpoint News Feed
MyScale Blog
MyScale Blog

博客园 - 景天

[转]mysql sql 百万级数据库优化方案 left outer join 【转】C#中文排序(拼音和笔画) Ext中Checkbox的注意事项 - 景天 - 博客园 表单从服务器端读取 [转]关于project2003中几个视图的认识 Oracle 常用数据字典、外键查询 Oracle 10 回收站 C++ 字符串替换 ASP.NET MVC beta 模板(Templates) 中文修正补丁 完整版 Oracle备份数据库的脚本 RadioButtonList的选择确认 Oracle10g常用命令 和 常用函数 Oracle 10g 笔记1 连接和SQL编写 .NET调用Oracle存储过程,使用数组类型的参数(如ArrayList) Oracle 存储过程 及 .net 调用 按钮事件 直接下载 任何文件格式 ASP.NET MVC beta 中文模板修正补丁 IE7\IE6 图片上传预览 - 景天 - 博客园
Ext.extend
景天 · 2010-07-10 · via 博客园 - 景天
    Ext.MyWindow = Ext.extend(Ext.Window, {
        width: 300
        , height: 200
        , addButtons: function () {
            if (!this.buttons) {
                this.buttons = [];
            }
            Ext.each(arguments, function (arg) {
                this.buttons.push(arg);
            }, this)
        }
        , initTools: function () {
            Ext.MyWindow.superclass.initTools.call(this);
            console.log("initTools");
            this.addButtons([{ text: "提交", handler: this.submit.createDelegate(this) }, 
{ text: "关闭", handler: this.hide.createDelegate(this)}])
        }
        , hide: function () {
            Ext.MyWindow.superclass.hide.call(this);
        }
        , submit: function () {
            Ext.Msg.alert("X");
        }

    });
    Ext.onReady(function () {
        var win = new Ext.MyWindow();
        win.show();

    });