大约有 230 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0081 秒)
...相关的链接 提交 1 个回复 Laya_XS 赞同来自: var BackGround=(function(_super){ function BackGround(){ BackGround.__super.call(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("comp/bg.png"); this.addChild(this.bg1); } Laya.class(BackGround,"BackGround",_super); return BackGround; ...
来源: Laya_社区 发布时间: 20170222
...ew=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; export module ui.test { export class TestSceneUI extends Laya.Scene { public scoreLbl:Laya.Label; public tipLbll:Laya.Label; constructor(){ super()} createC...
来源: Laya_社区 发布时间: 20190402
...JS语法相关的书籍 完整的结构如下所示: var LoginView = (function(_super){ function LoginView(){ LoginView.super(this); } Laya.class(LoginView,"LoginView",_super); return LoginView; })(ui.LoginUI); 2018-01-30 0 0 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180130
...接 提交 1 个回复 w1114367261 赞同来自: * @example * (function (_super){ * function Item(){ * Item.__super.call(this);//初始化父类 * this.graphics.drawRect(0, 0, 100, 20, "#ff0000"); * var label = new l...
来源: Laya_社区 发布时间: 20180426
...如下:(语言javascript,引擎1.7.8beta) var ServerListView = (function(_super){ function ServerListView(){ ServerListView.super(this); this.selectedIndex = -1; var data = ; //设置服务器列表项信息 for(var i=0;i<100;i++){ data = {select:{label:"服务器"+(i+1),selected:false...
来源: Laya_社区 发布时间: 20170805
...这个类的时候会报错,是不是这个类写得不对呀 var Test = (function(_super){ function Test(){ Test.super(this); console.log("执行测试构造函数"); } //注册类 Laya.class(Test,"Test",_super); //获取执行域 var _proto = Test.prototype; //_proto. retur...
来源: Laya_社区 发布时间: 20180605
... 提交 2 个回复 cuixueying 赞同来自: gls_laybox var IndexView = (function(_super){ this.angle; this.draw; this.box; this.circle; function IndexView(){ IndexView.super(this); this.angle = 0; Laya.timer.loop(200,this,this.loadProgress) var Sprite = Laya.Sprite; this.box = new Sprite(); this.bo...
来源: Laya_社区 发布时间: 20170807
...t; mytexts.as: public class myTexts extends myTextsUI public function myTexts() { super(); } override protected function initialize():void { super.initialize(); } ...
来源: Laya_社区 发布时间: 20170703
...eAddChunk (_stream_readable.js:[...] GameInfo.js代码: var GameInfo = (function(_super){ function GameInfo(){ GameInfo.super(this); this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick); this.reset(); } Laya.class(GameInfo, "GameInfo...
来源: Laya_社区 发布时间: 20170416
看一下这是什么问题,运行报错 var MPanel1 = (function (_super) { function MPanel1() { MPanel1.super(this); } Laya.class(MPanel1, "MPanel1", _super) var _proto = MPanel1.prototype; return MPanel1; }(ui.Panel1UI));代码如上,报错如下 附件 : --> 2018-02-06 添加评论 免费...
来源: Laya_社区 发布时间: 20180206