timertest.xml
来自「在流览器上仿CS界面的JAVASCRIPT脚本」· XML 代码 · 共 40 行
XML
40 行
<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 + =
减小字号Ctrl + -
显示快捷键?