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

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

101. 我想问下如果要调用手机本地相册,能不能用HTMLDivElement?该怎么用 [ 52%]

...00" id="canvas"></canvas> </body> <script> $("#file").change(function (){ var file = new FileReader();//读取文件2进制 file.onload = function(e){ var base64 = e.target.result; var img = new Image();//创建一个图片对象 img.onload = function (){ var canvas = $("#canvas...

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

102. QQ 玩一玩 laya.bkadpter.js (新的版本) 报错 [ 52%]

...错了: level=1, code=-1, info1=Execute JS Error![TypeError: Attempting to change the setter of an unconfigurable property.]: line = 1075, column = 24, sourceURL = /Users/tsubasa/Library/Developer/CoreSimulator/Devices/565D33C9-E1BA-42BF-87C3-3282FD83F6C5/data/Containers/Bundle/Application/38D2253A-...

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

103. 有个问题想不明白,请教一下。为什么List的selectedIndex要对List进行重新渲染 [ 52%]

...x修改的是_selectedIndex值和对选中状态的显示和隐藏,派发change事件,调用selectHandler。 为什么要对List重新渲染。如果我的list里的子项内容修改了,但是selectedIndex重新渲染List,那么修改过的子项不是就变回最初的内容。那不就是...

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

104. iPhone6 ios 8.3系统 最新的QQ 锁屏再解锁 游戏闪退 [ 52%]

... var hidden:String = "hidden", state:String = "visibilityState", visibilityChange:String = "visibilitychange"; var document:* = window.document; if (typeof document.hidden !== "undefined") { visibilityChange = "visibilitychange"; state = "visibilityState"; } else if (typeof document.mozHidden !== "u...

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

105. [分享] 使用 Parcel 打包工具 进行 Layaair 的游戏开发 (原创) [ 51%]

...位置. 由于 parcel 官方的配置较弱, 所以编写了 parcel-plugin-change-file 插件配合使用.   为什么不用 webpack 而使用 parcel ? 因为parcel 编译速度更快, 使用 parcel 不用为 javascript 和 typescript 分别配置一遍, 业余时间毕竟很珍贵 :)  确保你...

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

106. 重力感应 Accelerator 发布微信游戏后失效。是因为什么? [ 51%]

...信游戏后失效。是因为什么? Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); function monitorAccelerator(acceleration, accelerationIncludingGravity, rotationRate, interval) {         let x = accelerationIncludingGravity.x;         let y = accelerationIncludin...

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

107. layaair2-cmd安装报错 [ 51%]

layaair2-cmd安装报错 Working directory changed to ~\AppData\Roaming\npm\node_modules\layaair2-cmd internal/modules/cj s/loader.js:638     throw err;     ^ Error: Cannot find module 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\layaair2-cmd\node_modules\gulp-babel'     at Functi...

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

108. laya.d3.core.MeshFilter [ 51%]

...By  loaded异步几何体资源加载完成时调度。MeshFilter  meshchanged更换sharedMesh时调度。MeshFilterProperty Detail_isAsyncLoadedproperty_isAsyncLoaded:Boolean  [read-only] [override] Implementation     public function get _isAsyncLoaded():Boolean_originalBoundingBoxpropert...

来源: laya_api 发布时间: 20170929

109. layaair.so 底层崩溃 [ 51%]

... ready >>>>>>>>>>>>>The network has changed D/AES: onEndOfErrorDumpThread: data_app_native_crash Time: 1533189587824 Flags: 0x3888bf46 PID: 7955 Foreground: Yes Build: OPPO/A83/A83:7.1.1/N6F26Q/1524206852:user/release-keys *** *** *** *** *** *** *** *** *** **...

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

110. 构建报错,TypeScript error: node_modules/@types/node/base.d.ts' not found. [ 51%]

... (CST) -------------------------------------- [15:34:09] Working directory changed to /Applications/LayaAirIDE.app/Contents/Resources/app [15:34:09] Using gulpfile ~/Git/WorkProject/StackBall/.laya/compile.js [15:34:09] Starting 'compile'... 出错了: TypeScript error: ../../../node_modules/@types/...

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