大约有 1,309 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0051 秒)
Laya_社区(1120) Laya2.0_文档(69) Laya3.0_文档(50) Laya2.0_示例(27) Laya_示例(24) Laya3.0_api(17) laya_api(1) Laya2.0_api(1)
...an ; onMouseDown(e : laya.events.Event):void{ console.log("MOUSE_DOWN"); this.on(laya.events.Event.MOUSE_MOVE ,this, this.onMouseMove); this.onMouseDownX = e.target.mouseX; this.onMouseDownY = e.target.mouseY; } onMouseUp(e...
来源: Laya_社区 发布时间: 20160823
...var io = require('socket.io').listen(server); server.listen(8888); console.log("服务器启动"); io.on('connection', function (ws) { console.log('客户端连接成功!'); ws.on('foo', function(data){ console.log(data); }); }); 自己写的html页面 <!DOCTYPE html> <html> <head&g...
来源: Laya_社区 发布时间: 20181107
...#FFFFFF", "center"); return btn; } // 播放音效 onPlaySound() { console.log("播放音效"); Laya.SoundManager.playSound("res/sounds/btn.mp3", 1, new Laya.Handler(this, this.onComplete)); } // 播放音乐 onPlayMusic() { console.log("播放音乐"); Laya.SoundManager.playMusic("res/sounds/bgm.mp...
来源: Laya2.0_示例 发布时间: 20241125
...Ball = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.img1 ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; console.log("33333"); } if (this.ball.x + this.vx > t...
来源: Laya_社区 发布时间: 20171108
...stage.addChild(button); return button; } function onPlayMusic(e) { console.log("播放音乐"); SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } function onPlaySound(e) { console.log("播放音效"); SoundManager.playSound("../../res/sounds/btn.mp3", 1, new Han...
来源: Laya_示例 发布时间: 20241125
...nfo({ withCredentials:false, lang: 'zh_CN', success: (res) => { console.log(res); // BigData.ins.user = res.data[0]; }, fail: () => { console.log("userInfo"+JSON.stringify("fail")); }, complete: () => { // console.log("userInfo"+JSON.stringify(selfData)); } Res打印出来时空的 附件 :...
来源: Laya_社区 发布时间: 20190917
...: var configData:XmlDom = Loader.getRes(config_PATH) as XmlDom; console.log(configData); console.log(configData.attributes); console.log(configData.childNodes); xml如下: <root> <config> <PATH>../h5/</PAHT> </config> </root> 2...
来源: Laya_社区 发布时间: 20170531
...ht = Laya.Browser.clientHeight; if (stageWidth < stageHeight) { console.log("one", Laya.stage.scaleMode) Laya.stage.scaleMode = Laya.Stage.SCALE_NOSCALE; //1 console.log("one1", Laya.stage.scaleMode) } else { console.log("two", Laya.stage.scaleMode) Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFI...
来源: Laya_社区 发布时间: 20170920
...a = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); } public _start(state:Laya.RenderState):void{ this.ray = new Laya.Ray(Laya.Vector3.ZERO,Laya.Vector3.ZERO); this.phasorSprite3D = new Laya.PhasorSpriter3D(); Laya.st...
来源: Laya_社区 发布时间: 20181020
... } else { console.log("OPPOSANS-R ttf 字体加载成功"); } return resolve(success); }), Laya.Handler.create(this, (pro) => { ...
来源: Laya_社区 发布时间: 20201104