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

推荐订阅源

N
Netflix TechBlog - Medium
罗磊的独立博客
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
博客园 - Franky
F
Fortinet All Blogs
D
Docker
博客园 - 司徒正美
腾讯CDC
Recent Announcements
Recent Announcements
The Cloudflare Blog
B
Blog RSS Feed
GbyAI
GbyAI
T
Tailwind CSS Blog
雷峰网
雷峰网
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)
阮一峰的网络日志
阮一峰的网络日志

博客园 - 景天

[转]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();

    });