大约有 1,077 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0086 秒)
Laya_社区(985) Laya2.0_文档(47) Laya3.0_文档(20) Laya2.0_api(12) Laya2.0_示例(5) Laya_示例(5) laya_api(2) Laya3.0_api(1)
...大量数据或敏感信息。 xhr.send('https://httpbin.org/post', 'name=test&age=20', 'post', 'text'); 2.2、获取HTTP响应 在发送完HTTP请求后,我们可以通过事件的帧听,针对不同的事件响应,做出相应的逻辑处理。 2.1 支持的事件类型 LayaAir中的Http...
来源: Laya3.0_文档 发布时间: 20251010
...ml> <html> <head> <meta charset="UTF-8"> <title>Test WebSocket</title> <script type="text/javascript"> //显示信息 var log = function(s) { if (document.readyState !== "complete") { log.buffer.push(s); } else { document.get...
来源: Laya_社区 发布时间: 20170724
...r : Laya.Animator; onStart() { this.label.on( Laya.Event.CLICK, this, this.test ); //获得状态机 this.animator = this.target.getComponent<Laya.Animator>(Laya.Animator); } //运行状态机的跑动画,可使用动作融合方式 test(e: Laya.Event) { //动画状态机,过渡融合到Ru...
来源: Laya3.0_文档 发布时间: 20251010
...is, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //Laya.stage.addChild(testView); // //return; Laya.timer.once(3000, this, function():void{ var sprite:Sprite = new Sprite(); sprite.pos(0, 0); var texture:Texture = new Texture(Browser.wind...
来源: Laya_社区 发布时间: 20180525
...SHAKE,handshakebuffer); // this.socket.send('{"cmd":0,"data":{"user_name":"test0001","password":"abcd1234"}}@'); this.send(buffer); this.socket.output.writeArrayBuffer(buffer); this.socket.flush(); } private onClose(e:Laya.Event):void { console.error("[Pomelo] connect close:",e); this.emit(Pomelo.EV...
来源: Laya_社区 发布时间: 20180119
...绘制10000个文本(根据电脑性能而定,本例为10000): class Test { private text:Laya.Text; constructor() { Laya.init(550,400,Laya.WebGL); Laya.Stat.show(); var textBox=new Laya.Sprite(); for(var i=0;i<10000;i++) { this.text=new Laya.Text(); this.text.text=(Math.random()*100).toFixed(...
来源: Laya3.0_文档 发布时间: 20251010
... SoundManager.Instance.playMusic111("resources/music/test/FY-0079.wav"); }); } } import { JsonTool } from "src/tools/JsonTool"; import { ResourceManager } from "./ResourceManager"; declare function testmusic_cn_ios(accountId: string): void...
来源: Laya_社区 发布时间: 20250930
... > node lib/install.js ‼ read ECONNRESET ‼ gifsicle pre-build test failed i compiling from source × Error: Command failed: C:\Windows\system32\cmd.exe /s /c "autoreconf -ivf" 'autoreconf' �����ڲ����ⲿ���Ҳ���ǿ����еij��� ���...
来源: Laya_社区 发布时间: 20200211
...指定粒子的颜色。 Texture:指定粒子使用的纹理贴图 Alpha Test Value:透明测试开启时,当前像素根据设定条件决定是否输出颜色 Tiling Offset:获取纹理平铺和偏移 Material Render Mode:设置渲染模式 Opaque:默认设置,适用于没有透...
来源: Laya3.0_文档 发布时间: 20251010
...指定粒子的颜色。 Texture:指定粒子使用的纹理贴图 Alpha Test Value:透明测试开启时,当前像素根据设定条件决定是否输出颜色 Tiling Offset:获取纹理平铺和偏移 Material Render Mode:设置渲染模式 Opaque:默认设置,适用于没有透...
来源: Laya3.0_文档 发布时间: 20250104