module3.js

来自「Visual JS 在线JS编辑器 非常的COOL 在线生成网页和JS代码」· JavaScript 代码 · 共 52 行

JS
52
字号
Class('App.Module3', 'linb.Com',{    Instance:{        base:["linb.UI"],         customAppend:function(){            this.dialog.show();        },         iniComponents:function(){            // [[code created by jsLinb UI Builder            var host=this, children=[], append=function(child){children.push(child.get(0))};                        append((new linb.UI.Dialog)                .host(host,"dialog")                .setLeft(130)                .setTop(160)                .setHeight(200)                .setCaption("\u6a21\u5757\u4e09\u4e2d\u7684\u5bf9\u8bdd\u6846")            );                        host.dialog.append((new linb.UI.Pane)                .host(host,"panelMain")                .setLeft(20)                .setTop(30)                .setWidth(220)                .setHeight(80)            );                        host.panelMain.append((new linb.UI.Div)                .host(host,"div37")                .setLeft(30)                .setTop(10)                .setHeight(20)                .setHtml("\u6a21\u5757\u4e09\u7684\u754c\u9762")            );                        host.panelMain.append((new linb.UI.Button)                .host(host,"button22")                .setLeft(20)                .setTop(40)                .setWidth(180)                .setCaption("\u6a21\u5757\u4e09\u4e2d\u7684\u6309\u94ae")                .onClick("_button22_onclick")            );                        return children;            // ]]code created by jsLinb UI Builder        },         required:["linb.UI.Pane", "linb.UI.Div", "linb.UI.Tag", "linb.UI.Button", "linb.UI.Dialog"],         _button22_onclick:function (profile, e, value) {            alert("I'm in Module3");        }    }});

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?