⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 module3.js

📁 Visual JS 在线JS编辑器 非常的COOL 在线生成网页和JS代码 自由显示。
💻 JS
字号:
Class('App.Module3', 'linb.Com',{    Instance:{        base:["linb.UI"],         customAppend:function(){            this.dialog.show();        },         iniResources:function(com, threadid){            var ns=this;            linb.absIO.groupCall({data:linb.Ajax('App/js/data.js','',function(txt){                ns.$cap=txt;            })},null,function(threadid){                linb.log('thread id: '+threadid, 'to get Datasource in Module3.js');                linb.Thread(threadid).insert(1000);            },function(threadid){                linb.log('thread id: '+threadid, 'Datasource is ready in Module3.js');                linb.Thread(threadid).insert(1000);            },threadid);        },        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(480)                .setTop(160)                .setHeight(200)                .setCaption("dialog in Module3")            );                        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("UI in Module3")            );                        host.panelMain.append((new linb.UI.Button)                .host(host,"button22")                .setLeft(20)                .setTop(40)                .setWidth(180)                .setCaption("button in Module3")                .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");        },         _beforecreated:function (com, threadid) {            linb.log('thread id: '+threadid, 'Module3.js is loaded');            linb.Thread(threadid).insert(1000);        },         events:{"onCreated":"_beforecreated", "onReady":"_onready"},         _onready:function (com, threadid) {            com.dialog.setCaption(com.$cap);                        linb.log('thread id: '+threadid, 'Module3.js is ready');            linb.Thread(threadid).insert(1000);        }    }});

⌨️ 快捷键说明

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