大约有 443 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)
关于xml解析 可以直接把xml string转换为object吗? getRes读取的xml,根节点前面多了两行(描述xml版本之类的),解析不了; 现在的想法是以文本方式读取,去掉前两行再解析,但是没有找到直接把xml string转换为object的方法 2017-12-...
来源: Laya_社区 发布时间: 20171208
...t = new Browser.window.Blob([byte.buffer], { type: "image/png" }); var url:String = Browser.window.URL.createObjectURL(blob);//创建一个url对象; ////我们先用第一种方式显示图片到舞台; var sp:Sprite = new Sprite(); sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 }...
来源: Laya2.0_文档 发布时间: 20210714
...才会触发回调,源码如下 public static function downFiles(fileUrl:String, encoding:String = "ascii", callBack:Handler = null, readyUrl:String = "",isSaveFile:Boolean = false,fileType:String = "",isAutoClear:Boolean =true):void { var downloadTask:* = wxdown({url: fileUrl, success: function(d...
来源: Laya_社区 发布时间: 20180924
...rAni: Laya.Animation; /** 资源前缀 */ private readonly ANIMATION_PATH: string = "resources/builtIngame3role/roleMonster/mc/"; /** 已加载的 .mc 资源路径数组 */ private loadedClips: string[] = []; onEnable(): void { this._animator = this.owner.getComponent<Laya.Animator2D>...
来源: Laya_社区 发布时间: 20251211
...) * @param progress 加载进度回调(可选) */ static open(url: string, closeOther: boolean = true, param: any = null, complete: Handler = null, progress: Handler = null): Promise<Scene> { Scene.showLoadingPage(); return Scene.load(url, Handler.create(null, this._onSceneLoaded, [close...
来源: Laya3.0_文档 发布时间: 20251010
...t>" var XMLParser = new Parser.DOMParser() var doc = XMLParser.parseFromString(xml) var a = doc.getElementsByTagName('achieve'); // 这样可以解析 没有问题 但是 通过 xml =Laya.loader.getRes("res/Config/text.xml"); var doc = XMLParser.parseFromString(xml) var a = doc.getElementsByTagNa...
来源: Laya_社区 发布时间: 20180828
...锁,如果true为不能使用自动释放机制。 Optional name name: string Inherited from Resource.name Defined in laya/resource/Resource.ts:105 名称。 url url: string Inherited from Resource.url Defined in laya/resource/Resource.ts:107 获取资源的URL地址。 uuid uuid: string Inherited...
来源: Laya3.0_api 发布时间: 20231115
...ets/Main-dat:yunlong System.IO.Directory.CreateDirectoriesInternal (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:131) System.IO.Directory.CreateDirectory (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System....
来源: Laya_社区 发布时间: 20170428
... mode: "average" = "average" Defined in laya/utils/Stat.ts:50 title title: string = "BlitDrawCall" Defined in laya/utils/Stat.ts:50 units units: "int" = "int" Defined in laya/utils/Stat.ts:50 value value: string = "blitDrawCall" Defined in laya/utils/Stat.ts:50 Static BufferMemory BufferMemory: obje...
来源: Laya3.0_api 发布时间: 20231115
...ber = 0原始宽度(包括被裁剪的透明区域)。Texture url : String = null图片地址Texture uv : ArrayTexture width : Number 实际宽度。TexturePublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By Texture(bitmap:Texture2D = null, uv...
来源: Laya2.0_api 发布时间: 20190513