index.js

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

JS
33
字号
Class('App', 'linb.Com',{    Instance:{        //base Class for linb.Com        base:["linb.UI"],         //requried class for the App        required:["linb.UI.Button", "linb.UI.Tabs", "linb.UI.Layout"],         _button5_onclick:function (profile, e, value) {            var dlg=new linb.UI.Dialog;            dlg.append( new linb.UI.ColorPicker);            dlg.renderOnto('dialog');                        linb('datepicker').append(new linb.UI.DatePicker);                        profile.boxing().destroy();        },         iniComponents:function(){            // [[code created by jsLinb UI Builder            var host=this, children=[], append=function(child){children.push(child.get(0))};                        append((new linb.UI.Button)                .host(host,"button5")                .setLeft(290)                .setTop(250)                .setCaption("render")                .onClick("_button5_onclick")            );                        return children;            // ]]code created by jsLinb UI Builder        }    }});

⌨️ 快捷键说明

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