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

大约有 192 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)

111. MovieClip报错 [ 67%]

...:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find"); return; } //保护修改-----end------------------ t...

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

112. 关于调试跨域的问题 [ 67%]

...Control-Allow-Origin' header is present on the requested resource. Origin 'file://' is therefore not allowed access. 但是在layaIde里面用chrome调试,正常运行,没有跨域, 为什么同一个工程,打开同一个chromeliu浏览器,一个跨域,一个不跨域,这是什么原...

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

113. post提交问题 [ 67%]

...Control-Allow-Origin' header is present on the requested resource. Origin 'file://' is therefore not allowed access. The response had HTTP status code 500. 后台是用c#写的,请问出现这问题怎么解决,提交图片是OK的,提交数据出现上述情况 2017-12-25 添加评论 免费...

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

114. Uncaught RangeError:Array buffer allocation failed [ 66%]

... not find scene:GameView.scene undefined Failed to load resource: net::ERR_FILE_NOT_FOUND 加载龙骨动画出报错Uncaught getUint16 error - Out of bounds 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of undefined错误 Uncaught...

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

115. 使用layaide进行打包,提示如下错误。 [ 66%]

.../bin/js/" #文件夹目录   fns = [os.path.join(root,fn) for root, dirs, files in os.walk(path) for fn in files] for f in fns: print(f) with open(f, "r+") as f: old = f.read() f.seek(0) f.write("\"use strict\";") f.write(old) print(len(fns)) ``` 2018-05-24 0 1 分享 微博 QZONE 微信 为什么...

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

116. 引擎能打包成html页面,然后直接用手机webview加载吗? [ 66%]

...打开也会受到跨域加载的限制。 比如加载图片提示如下: file:///data/user/0/test/files/apps/fb77dedd-fee0-40dd-9a63-4e00cb6b6a89/1.0.0/index.html-line0 :Image from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'nul...

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

117. 微信小游戏 TS 使用 downLoadFile 出现报错 [ 66%]

微信小游戏 TS 使用 downLoadFile 出现报错 引擎版本 1.7.18 开发语言:TypeScript使用 TS 开发,添加微信适配库之后,只有 Laya.MiniAdpter.init() 能使用,而文档上关于微信缓存管理的 downLoadFile 等不能使用。 在 LayaAir.d.ts 中的 MiniAdpter 添...

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

118. laya的ide如何import js并调用里面的类和方法?VS Code正常。 [ 66%]

...GameMain(); } http://requirejs.org/docs/errors.html#mismatch at makeError (file:///E:/laya/TestImport/bin/node_modules/requirejs/require.js:168:17) at intakeDefines (file:///E:/laya/TestImport/bin/node_modules/requirejs/require.js:1254:36) at file:///E:/laya/TestImport/bin/node_modules/requirejs/req...

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

119. ide 2.4 layaair2-cmd 编译报错 [ 65%]

...y changed to /usr/local/lib/node_modules/layaair2-cmd [14:22:35] Using gulpfile ~/Documents/GameTowertest/.laya/compile.js [14:22:35] Starting 'compile'... rpt2: config error TS18003: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths w...

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

120. 用ts开发,从编辑模式发布后,代码模式里layaUI.max.all.ts会报错 [ 65%]

...编辑模式发布后,代码模式里layaUI.max.all.ts会报错,提示 file: 'file:///d%3A/Html5/LayaBox/xxx/src/views/ui/layaUI.max.all.ts' severity: '错误' message: 'Cannot find name 'loadUI'. Did you mean the instance member 'this.loadUI'?' at: '16,13' source: 'ts' 2017-05-22 添加评论 ...

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