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

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

11. html5构建ios,alert错误框,深度拷贝问题 [ 92%]

html5构建ios,alert错误框,深度拷贝问题 html5项目构建成xcode,编译真机测试时问题。     jquery.min.js不支持深度拷贝,请问是什么问题,我该怎么解决!!! 附件 : --> 2017-01-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

12. [LayaAir3]【3.3.3】安卓与ios原生在声音播完后错误弹窗 [ 90%]

...报错弹窗。我不清楚是否有哪个设置导致报错信息会以此alert方式弹出来。 附件 : --> 2025-11-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 得意须尽欢 赞同来自: 自己解决...

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

13. 请问:通过Laya.Geolocation来定位存在较大误差(超过1公里),该如何解决? [ 89%]

...sitionSuccess), Laya.Handler.create(null, cb_onGeoPositionFail)); } else { alert("您的浏览器不支持使用HTML5来获取地理位置服务"); } } // 回调函数:获取GPS坐标成功后 function cb_onGeoPositionSuccess(pos) { alert("pos:"+pos.coords.longitude+","+pos.coords.latitude); /*这...

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

14. 我实现内购的时候,通过ios原生已经成功购买,弹出alert [ 89%]

我实现内购的时候,通过ios原生已经成功购买,弹出alert 但是返回打印[IAP] Cannot transmit receipt data. Could not connect to the server.这个,还有回调到js方法里面的参数也显示购买失败,code=-1,请问这是怎么回事 附件 : --> 2018-02-05 添加...

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

15. playByFrame动画监听问题,真不会了。就一个小问题。监听不到动画结束。。。 [ 87%]

...        function complete(){                             alert(1)                         }                     } else if (name=='anifish1') {                         anifish1.player.playByFrame(0,1.0,0,40,119,30);                       ...

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

16. 输入设备-地图 [ 84%]

....setZoom(17); } } function onError(e) { if (e.code == Geolocation.TIMEOUT) alert("获取位置超时"); else if (e.code == Geolocation.POSITION_UNAVAILABLE) alert("位置不可用"); else if (e.code == Geolocation.PERMISSION_DENIED) alert("无权限"); } })(); module laya { import Stage = Laya.Stage...

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

17. 输入设备-地图 [ 84%]

...{ const Geolocation = Laya.Geolocation; if (e.code == Geolocation.TIMEOUT) alert("获取位置超时"); else if (e.code == Geolocation.POSITION_UNAVAILABLE) alert("位置不可用"); else if (e.code == Geolocation.PERMISSION_DENIED) alert("无权限"); } } new InputDevice_Map();module laya { import ...

来源: Laya2.0_示例 发布时间: 20251209

18. config.jsh中无法使用confirm [ 83%]

... • 2018-01-16 11:17 @Monica:但是在安卓项目中config.js中能调用alert,为什么不能调用confirm 浪货界扛把子 • 2018-01-16 11:19 @Monica:主要原因是网络连接异常时,弹出alert警告框,玩家点击ok后就停留在logo界面,我这边想在点击ok后将应用...

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

19. 请问js怎么触发按钮的onclick事件,按教程的写,触发不知道为什么。 [ 79%]

...写的   export default class btn1 extends Laya.Script { constructor(){ alert("1"); //执行后这里触发了 super();} onEnable(){ alert("2"); //执行后这里触发了 } onclick(){ alert("3"); //执行后点击按钮这里没触发,不知道为什么 //Laya.Scene.open("_game.scene"); } } 2018...

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

20. 为什么说没有​ playByFrame方法 [ 79%]

...0,40,72,30); anifish.on(Event.COMPLETE,this,complete) function complete(){ alert(1) } Monica • 2017-09-27 14:22 @haiboannacom:Event前边加个Laya.看看 haiboannacom • 2017-09-27 14:25 @Monica:第三条鱼我加了这个了。也不行。anifish2那个。那个加了Laya。。。 for (var i = ...

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