大约有 965 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0058 秒)
...p udp //创建server服务 var server = net.createServer(function (conn) { console.log('new connection is connecting') conn.write('\n hello buddy') }); server.listen(8081, function () { console.log('server is listening') // server.emit('connection'); }); 2019-04-23 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20190423
...了centerX 和centerY后,就无法获取到这个Box的坐标了呀? console.log(this.test1.x ) //结果是 0 但console.log 这个对象,可以看到_x _y 的坐标 请问如何获取到这个被布局后的x y坐标呀? 附件 : --> 2019-07-01 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20190701
...txt); } private function onFunc(e:Event):void { var arr:Array = e.touches; console.log("e.touchId="+e.touchId); console.log("arr[0]"+arr[0]); } } } 输出为: 不明白touches属性数组里面存储的什么类型的数据,第二个不明白touches如何使用 求解答 附件 ...
来源: Laya_社区 发布时间: 20170519
...lete); this.timeLine.on(Event.LABEL, this, this.onLabel); } onComplete() { console.log("timeLine complete!!!!"); } onLabel(label) { console.log("LabelName:" + label); } keyDown(e) { const Keyboard = Laya.Keyboard; switch(e.keyCode) { case Keyboard.LEFT: this.timeLine.play("turnLeft"); break; case Ke...
来源: Laya2.0_示例 发布时间: 20240930
...Laya.Event) { if (e.keyCode == 65) {//A console.log("释放资源false") Laya.loader.clearRes("res/atlas/comp.json", false); Laya.loader.clearRes("res/atlas/comp.png", false); } if (e.keyCode == ...
来源: Laya_社区 发布时间: 20170317
...plete_FontLoad),null,Laya.Loader.BUFFER); function OnComplete_FontLoad() { console.log("加载字体"); var newFont = Laya.loader.getRes("font/本墨竟圆-常规.ttf"); if(Laya.Browser.window.conch) { console.log("12313131313"); Laya.Browser.window.conch.setFontFaceFromBuffer("本墨竟圆-常规",...
来源: Laya_社区 发布时间: 20180718
...this.ctx.graphics.drawTexture(htmlC, 0, 0,this.ctx.width,this.ctx.height); console.log(htmlC) console.log(htmlC.getPixels(0,0,this.ctx.width,this.ctx.height)) 能搞定图片和texttrue,或者转化Uint8Array了,可是能怎么用啊?怎么转URL,保存到后台啊? 2019-11-24 1 条评论...
来源: Laya_社区 发布时间: 20191124
....MeshSprite3D = building.getChildByName( "fence15" ) as Laya.MeshSprite3D; console.log("-----"); console.log(building); console.log("-----"); console.log(moveArea); } private playRun(): void { this.animator.play("Running"); this.animator.speed = 1.0; } private playIdle(): void { this.animator.play("...
来源: Laya_社区 发布时间: 20200917
...ect.on( Laya.Event.CLICK, this, changeVxVy ); } function changeVxVy( e ){ console.log( e.nativeEvent.offsetX ); console.log( e.nativeEvent.offsetY ); } 我设置了一个矩形,并给这个矩形增加了一个点击事件。 我发现e.nativeEvent.offsetX和e.nativeEvent.offsetY返回相对...
来源: Laya_社区 发布时间: 20180201
...alse);//设置 tab 的选择项发生改变时执行的处理器。 console.log("A123"); function onSelect(index) { console.log("当前选择的标签页索引: index= ", index); } } 附件 : --> Del5.rar 2016-07-22 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20160722