1 2 3 | <canvas width="300" height="200" bgcolor="white"> <statictext>Hello, World!</statictext> </canvas> |
1 2 3 4 5 6 7 8 9 10 11 12 13 | <canvas> <view bgcolor="0xcccccc" width="50" height="50"> <method event="onmouseover"> // Keyword this is used in the familiar JavaScript sense. // Most of JavaScripts scoping // concepts apply directly to Laszlo this.setAttribute('bgcolor', 0x000000); </method> <method event="onmouseout"> this.setAttribute('bgcolor', 0xcccccc); </method> </view> </canvas> |
1 | <class name="customView" extends="view"> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |