• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 404 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0044 秒)

161. 如果作大型LAYA AS项目,有可能支持module技术么 [ 66%]

...s\src",编译后的module.js生成均只有以下内容  (nction(window,document,Laya){     var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__getset=Laya.getset,__newvec=Laya.__newvec; })(window,document,Laya); 2017-02-09 0 0 分享 微博 QZONE 微信 joe51586 赞同...

来源: Laya_社区 发布时间: 20170204

162. 使用/*[COMPILER OPTIONS:normal]*/来编译分包无法生成Dictionary类的定义 [ 66%]

...','aa'); trace(a.get('test')); } } }生成的分包test.js(function(window,document,Laya){ var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__getset=Laya.getset,__newvec=Laya.__newvec; var Stage=laya.display.Stage,TestAA=aa.TestAA; //class test.AAA var AAA=(function(){ functio...

来源: Laya_社区 发布时间: 20170322

163. canvas定位后 点击区域偏移 [ 66%]

...自带的绝对定位,但也会导致点击区域偏移 var LayaCanvas = document.getElementsByTagName("canvas")[0] document.getElementById("aaa").appendChild(LayaCanvas); 3.在这里 http://ask.layabox.com/question/4533  问过,使用Laya.Render._mainCanvas.source.style来设置canvas的属...

来源: Laya_社区 发布时间: 20170518

164. wkwebview使用异常 [ 64%]

...r win:* = _window = __JS__("window");             var doc:* = _document = win.document;             var u:String = userAgent = win.navigator.userAgent;   //处理兼容性                       onMobile = u.indexOf("Mobile") > -1;          ...

来源: Laya_社区 发布时间: 20200810

165. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 63%]

...型由 `responseType 来指定,` 可以是 `ArrayBuffer` ,`Blob`, [`Document`](https://developer.mozilla.org/zh-CN/docs/Web/API/Document), JavaScript 对象 (即 “json”), 或者是字符串。如果请求未完成或失败,则该值为 `null` | | responseText | DOMString | 此次请...

来源: Laya2.0_文档 发布时间: 20210714

166. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 63%]

...型由 `responseType 来指定,` 可以是 `ArrayBuffer` ,`Blob`, [`Document`](https://developer.mozilla.org/zh-CN/docs/Web/API/Document), JavaScript 对象 (即 “json”), 或者是字符串。如果请求未完成或失败,则该值为 `null` | | responseText | DOMString | 此次请...

来源: Laya2.0_文档 发布时间: 20210715

167. 在Laya中使用Matter.js的最简示例 (JS) [ 63%]

...;//关闭重力 // create a renderer var render = Render.create({ element: document.body, engine: engine }); // create two boxes and a ground var boxA = Bodies.rectangle(400, 200, 80, 80); var boxB = Bodies.rectangle(450, 50, 80, 80); var ground = Bodies.rectangle(400, 500, 810, 60, { isStatic: true...

来源: Laya_社区 发布时间: 20170905

168. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 63%]

...型由 `responseType 来指定,` 可以是 `ArrayBuffer` ,`Blob`, [`Document`](https://developer.mozilla.org/zh-CN/docs/Web/API/Document), JavaScript 对象 (即 "json"), 或者是字符串。如果请求未完成或失败,则该值为 `null` | | responseText | DOMString | 此次请求...

来源: Laya2.0_文档 发布时间: 20210715

169. image问题. [ 61%]

...geData方法,为什么没有getImageData方法呢? var image: any = window.document.createElement("img"); image.putImageData(arrayBuff, width, height); var dd = image.imageData(0, 0, 1080, 1080);   2017-08-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

来源: Laya_社区 发布时间: 20170814

170. 输入设备-地图 [ 61%]

... (Browser.height - Laya.stage.height) / Browser.pixelRatio + "px"; Browser.document.body.appendChild(mapDiv); } function initMap() { // 初始化地图 map = new BMap.Map(mapDiv); // 禁用部分交互 //map.disableDragging(); map.disableKeyboard(); map.disableScrollWheelZoom(); map.disableDoubleCli...

来源: Laya_示例 发布时间: 20251209