大约有 168 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0051 秒)
... 微博 QZONE 微信 gls_laybox 赞同来自: /* * 父类t1 */ var t1 = (function () { function t1(b) { this.b = b; } //父类方法a t1.prototype.a = function(){ console.log(this.b.x+""+this.b.y); } return t1; }()); ========================= /* * t2继承父类t1 */ var t2 = (function () { funct...
来源: Laya_社区 发布时间: 20180104
...layaair中特别的语法规则在哪里统一可以找到 var LoginView = function () { LoginView.super(this); this.btnReg.on(Laya.Event.CLICK, null, function () { console.log("on btReg event") }); } 目前编辑的代码辅助,好像还是无法获得父类的...
来源: Laya_社区 发布时间: 20170317
这个写法是什么意思,能否解释一下,谢谢 function BackGround() { //定义背景1 this.bg1 = null; //定义背景2 this.bg2 = null; //初始化父类 BackGround.__super.call(this); ...
来源: Laya_社区 发布时间: 20170311
物体随着鼠标滑动旋转脚本 function ObjectRotate() { ObjectRotate.super(this);//这里不太清楚作用 //最终鼠标在X轴上的值 this.lastMouseX = NaN; //最终鼠标在Y轴上的值 this.lastMouseY = NaN...
来源: Laya_社区 发布时间: 20170810
...er; var Sprite = Laya.Sprite; var MapLayer = Laya.MapLayer; var loadMap = (function (_super) { function loadMap() { loadMap.super(this); } Laya.class(loadMap,"loadMap",_super); var _proto = loadMap.prototype; _proto.init = function() { this.num = ""; this.map = new TiledMap(); } _proto.showMap = fun...
来源: Laya_社区 发布时间: 20170605
...aya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function(){ console.log("点击事件") }) // console.log(this.getGold) } } new Main() Laya_Aaron • 2017-12-13 17:09 getGold 哪定义的呢 xdkaka • 2017-12-13 17:17 上面图片截图了,是在UI编辑模式...
来源: Laya_社区 发布时间: 20171213
...动 2. list item里的button图片显示不出来 item代码如下: (function (_super){ function MarketItem() { MarketItem.__super.call(this); this.size(312, 462); // {id:1,name:"10金豆-测试",price:0.01,title:"10金豆-测试",desc:"测试",balance:10,gift:0,imgPath:"res\\common\\BalanceSel...
来源: Laya_社区 发布时间: 20170422
... a constructor" StartPage: /**Created by the LayaAirIDE*/ var StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,3...
来源: Laya_社区 发布时间: 20181029
CameraMoveScript.as在哪儿下载群里的有错 public function CameraMoveScript() { } override public function _initialize(owner:Sprite3D):void { super._initialize(owner); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); Laya.stage.on(Event.MOUSE_OU...
来源: Laya_社区 发布时间: 20170218
...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