📄 timertest.xml
字号:
<Application> <Window caption="Timer Test" width="250" height="100"/> <Resources> <Script><![CDATA[function TimerTest() { var l = this.label = new BiLabel; l.setLocation(5, 5); application.getWindow().add(l); this.updateText() var t = new BiTimer; t.setInterval(1); t.addEventListener("tick", this.updateText, this); t.start(); var l2 = this.label2 = new BiLabel; l2.setLocation(5, 25); application.getWindow().add(l2); this.updateText2() var t2 = new BiTimer; t2.addEventListener("tick", this.updateText2, this); t2.start();}TimerTest.prototype.updateText = function () { this.label.setText( String( (new Date).valueOf() ) );};TimerTest.prototype.updateText2 = function () { this.label2.setText( String(new Date) );};TimerTest.main = function () { new TimerTest; }; ]]></Script> </Resources></Application>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -