大约有 1,144 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)
Laya_社区(859) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(29) laya_api(2) Laya2.0_api(2)
...反映啊 var JiHuo = (function (_super) { function JiHuo() { JiHuo.super(this); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler)...
来源: Laya_社区 发布时间: 20180419
...300, 200, 50, 50, "#000"); Block.pos(300, 100); Block.on(Event.MOUSE_DOWN, this, function() { console.log(1); }); 点击无效,但我给用 Laya.stage.on(Event.MOUSE_DOWN); 是有效的 什么原因了?谢谢解答 2017-03-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20170324
...: 2018-11-30 18:25 浏览: 1281 关注: 1 人 苏栢 • 2019-02-16 16:24 (this.player.getComponent(playerScript) as playerScript).destroy(); 或者 this.player._destroyComponent(this.player.getComponent(playerScript));
来源: Laya_社区 发布时间: 20181125
...phics.drawRect(0,0,300,300,"#FFFF00"); sp.size(100,100); sp.on(Event.CLICK,this,onClickSp); Laya.stage.addChild(sp); var spchild:Sprite=new Sprite(); spchild.graphics.drawRect(0,0,200,200,"#FF0000"); spchild.size(200,200); spchild.on(Event.CLICK,this,onClickSpChild); sp.addChild(spchild); } private ...
来源: Laya_社区 发布时间: 20170918
...8:04 浏览: 4035 关注: 2 人 riven • 2017-06-01 18:38 能直接监听 this.on("touchmove", this, this.onMouseMove)?
来源: Laya_社区 发布时间: 20170601
...31703/com.mihe.carrom I/LayaBox: alert=apploader.js:4515: TypeError: this._nativeObj.addGlobalValueDefine is not a function return this._nativeObj.addGlobalValueDefine(modifyType, type, size, defaultData); ^^ ...
来源: Laya_社区 发布时间: 20190307
...VE事件会报错 var test = new Laya.Image('img/icon/face.png'); test.x = this.width / 2; test.y = this.height / 2; this.addChild(test); test.on(Laya.Event.MOUSE_MOVE, this, (e) => { console.log(e); }); 监听mouse_move事件后,手指在test上滑动,会报错: 附件 : --> 2017-08-06 ...
来源: Laya_社区 发布时间: 20170806
... 横竖屏切换,此引擎渲染有BUG Laya.stage.on(Laya.Event.RESIZE, this, this.OnresizeFn); Laya.stage.alignH = "center";//"left"; Laya.stage.alignV = "middle";//"top"; Laya.stage.screenAdaptationEnabled=true; oldWith: number = 0; oldheight: number = 0; HengPing(isFirst: boolean): void ...
来源: Laya_社区 发布时间: 20180517
...键回调函数中调用DoFunc报错 我现在得到结论 KeyHandler中的this不能指代__proto对象 要使this指代过去,我记得参数中要加个参数才对,麻烦看下是不是转换问题,还是有这种写法 附件 : --> 2017-01-23 添加评论 免费帖 --> 分享 微博 QZ...
来源: Laya_社区 发布时间: 20170123
...or, data?:any)=>void) { let req = new Request(); req.on(Event.COMPLETE, this, (data) => { cb(null, data); }); req.on(Event.ERROR, this, (err) => { console.error(err); cb(err); }); let body = data; let tp = typeof data if(tp === 'object' || tp === 'array'){ if(method === 'post' || method ===...
来源: Laya_社区 发布时间: 20170123