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

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

171. layaAirIDE中如何使用wx等微信基础对象,ide版本1.7.19.1beta [ 75%]

...使用wx等微信基础对象,ide版本1.7.19.1beta wx.login({ success: function () { wx.getUserInfo({ success: function (res) { console.log('success', res) }, fail: function (res) { console.log("reject",res) } }) } }); 这段代码里的wx对象,报错如下 "wx is not defined" 2018-07-28 添...

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

172. laya.d3.webxr.core.AxiGamepad_API3.0 [ 75%]

...则值为 true;否则,值为 false。 off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删除...

来源: Laya3.0_api 发布时间: 20231115

173. 打包后报错 Unexpected token in JSON at position 266 [ 75%]

... Unexpected token in JSON at position 266;at api readFile success callback function SyntaxError: Unexpected token in JSON at position 266     at JSON.parse (<anonymous>)     at Function.MiniAdpter.getJson (http://127.0.0.1:31158/game/code.js:21236:15)     at Function.MiniLoader.onReadNat...

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

174. 发布微信小游戏json格式问题 [ 75%]

...r Unexpected token in JSON at position 27;at api readFile success callback function SyntaxError: Unexpected token in JSON at position 27     at JSON.parse (<anonymous>)     at Function.MiniAdpter.getJson (http://127.0.0.1:9973/game/code.js:20980:15)     at Function.MiniLoader.onReadNativ...

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

175. 用2.1.1版本IDE发布oppo小游戏,domparserinone报错 [ 75%]

... 'object')     module.exports = XMLReader; else if (typeof define === 'function' && define['amd'])     define([], function () { return XMLReader; }); else if (typeof exports === 'object')     exports["XMLReader"] = XMLReader;     if (typeof exports === 'object' && typeo...

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

176. qq小程序卡片广告 [ 75%]

...  adUnitId: xxxxxx             })             videoAd.onError(function(res){               console.log('videoAd onError',res)             })             videoAd.onLoad(function(res){               console.log('videoAd onLoad',res)             })       ...

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

177. 微信小游戏发布后,在开发者工具中报错, [ 75%]

... Unexpected token in JSON at position 787;at api readFile success callback function SyntaxError: Unexpected token in JSON at position 787 at JSON.parse (<anonymous>) at Function.e.getJson (http://127.0.0.1:37389/game/code.js:1:461434) at Function.e.onReadNativeCallBack (http://127.0.0.1:37389/...

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

178. laya.media.Sound_API3.0 [ 75%]

...ameters url: string 地址。 Returns void off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...

来源: Laya3.0_api 发布时间: 20231115

179. Laya.loader.create中的progress回调好像不准确? [ 75%]

...完成一遍后有没事件或者回调 执行回调函数时报is not a function 问题状态 最新活动: 2018-03-21 10:33 浏览: 811 关注: 2 人 jinfawu • 2018-03-21 10:50 我的代码是这样写的: Laya.loader.create("scenes/LayaScene_yueren/yueren.ls", Laya.Handler.create(th...

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

180. 原生js如何调用laya里的方法? [ 75%]

...不知道怎么访问与调用,找了好多的方法都没法使用: (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+...

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