大约有 486 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0071 秒)
Laya_社区(390) laya_api(39) Laya2.0_文档(29) Laya3.0_文档(14) Laya3.0_api(5) Laya2.0_api(5) Laya2.0_示例(2) Laya_示例(2)
...eName.endsWith("html" ) || fileName.endsWith("htm") || fileName.endsWith( "xml")) { return "text/html" ; } else if (fileName.endsWith("png")) { return "application/binarary" ; } else if (fileName.endsWith("jpg")) { return "image/jpeg" ; } else if (fileName.endsWith("js")) { return "application/x-jav...
来源: Laya_社区 发布时间: 20160104
...indow; var img = new Image(); var svg = new Blob([data], {type: 'image/svg+xml'}); var url = DOMURL.createObjectURL(svg); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); ``` 怎么运行上边这段代码呢?打开谷歌浏览器,随便打...
来源: Laya2.0_文档 发布时间: 20210714
...indow; var img = new Image(); var svg = new Blob([data], {type: 'image/svg+xml'}); var url = DOMURL.createObjectURL(svg); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); ``` 怎么运行上边这段代码呢?打开谷歌浏览器,随便打...
来源: Laya2.0_文档 发布时间: 20210715
...垂直方向中心线的距离(以像素为单位)。 Component comXml : Object XML 数据。 Component customRenderEnable : Boolean[write-only] 设置是否开启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。 Sprite dataSource : * 数据赋值,...
来源: laya_api 发布时间: 20170929
...持DOM与BOM、小游戏只能有一个画布、不支持Eval、不支持XML等等…… 但是,对于LayaAir引擎的开发者来讲,不用刻意去了解到底有哪些差异,照正常的LayaAir引擎开发规则去开发就可以了。 在微信小游戏发布前,需要先进行通用设...
来源: Laya3.0_文档 发布时间: 20251010
...原始的数据结构和数据值。 与其他数据序列化格式(如 XML 和 JSON)相比,Protobuf 具有更高的性能。它的二进制格式使得解析速度更快,并且因为其定义的消息结构是强类型的,在编译阶段就可以对消息格式进行检查,减少了运...
来源: Laya3.0_文档 发布时间: 20251010
...indow; var img = new Image(); var svg = new Blob([data], {type: 'image/svg+xml'}); var url = DOMURL.createObjectURL(svg); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); ``` 怎么运行呢?打开谷歌浏览器,随便打开你一个空白...
来源: Laya2.0_文档 发布时间: 20210715
...我们看下简单的脚本怎么实现这种效果。 var data = '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' + '<em>I</em> like ...
来源: Laya3.0_文档 发布时间: 20251010
...{ tempData = MiniAdpter.getJson(data.data); } else if (type == Laya.Loader.XML) { tempData = Laya.Utils.parseXMLFromString(data.data); } else { tempData = data.data; } if (!MiniAdpter.isZiYu && MiniAdpter.isPosMsgYu && type != Laya.Loader.BUFFER) { MiniAdpter.window.wx.postMessage({ ...
来源: Laya_社区 发布时间: 20200103
...e: "text", data: "this is demo text" }; type参数的可选值有text/json/xml/arraybuffer/bytes/filePath/custom,特别的,filePath是一个文件的绝对路径,custom可以指定一个自定义的回调函数。 如果资源不需要输出,那可以直接将输出内容置为空数组,...
来源: Laya3.0_文档 发布时间: 20251010