大约有 216 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0058 秒)
...t default class Test { public static onClick():void{ alert("123456"); } public static onClick1():void{ } } 原生中代码:ConchJNI.RunJS("Test.onClick()"); 原生中报错:ReferenceError: Test is not defined 附件 : --> TEST.zip 2019-03-13 ...
来源: Laya_社区 发布时间: 20190313
...来自: private static applyFont(nativePath: string) { alert("应用字体=>" + nativePath); let fontName = my["loadFont"](nativePath) as string; if (fontName) { Laya.Config.defaultFont = fontName; fgui.UIConfig.default...
来源: Laya_社区 发布时间: 20240513
...位到了,BUG或兼容性改进=========== 1、手动载入.lani,用 alert 一步步定位 2、进入addClip函数,继续用 alert 逐段定位,最终定位到奔溃的位置 3、这样,动画就可以正常在PC版微信的内置浏览器里用了 这严格意义上不算LAYA的B...
来源: Laya_社区 发布时间: 20180410
...都是js调原生的方法,原生调用js就写了ConchJNI.RunJS("alert('hello world')");这么一句话,alert是js本来就有的,我想改成ConchJNI.RunJS("myAlert('hello world')"),myAlert在ts不知道要写哪里 Laya_Aaron • 2018-07-13 11:20 写在哪里都可以,...
来源: Laya_社区 发布时间: 20180713
...:123}) 给加速器发消息 window.addEventListener("message",function(e){alert(e.data)}) 监听加速器发来的消息 conch: window.postMessage({jj:123}); 给iframe发消息 window.addEventListener("message",function(e){alert(e.data)});监听iframe发来的消息 如果接口需求无法满...
来源: Laya_社区 发布时间: 20181008
...ine 764 安卓上打包运行没问题 iphone上打包运行弹窗报以上alert,请问我该如何定位这个alert 2017-05-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 archerxy 赞同来自: cuixueying ...
来源: Laya_社区 发布时间: 20170523
...EventListener("devicemotion", deviceMotionHandler, false)'); __JS__('}else{alert("你的设备不支持DeviceMotion事件");}'); __JS__('function deviceMotionHandler(eventData){var acceleration = eventData.accelerationIncludingGravity'); __JS__('var curTime = new Date().getTime()'); __JS__('if ((cur...
来源: Laya_社区 发布时间: 20160110
...hild(btn); Laya.stage.addChild(btn); btn.on(Event.CLICK, this, function(){ alert("点击"); }); 点击btn并未弹出alert,我也设置了btn的size,这是为什么? 2017-01-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20170120
... ws = new MozWebSocket(url); } else { alert("您的浏览器不支持WebSocket。"); return ; } ws.onopen = function() { log("open"); setConnected("已连接"); //设置发...
来源: Laya_社区 发布时间: 20170724
...this message. Guideline 4.0 - Design Your app includes an update button or alerts the user to update the app, but the update button or alert does not link directly to the app’s page on the App Store. Please see attached screenshots for details. Next Steps To resolve this issue, please ensure that ...
来源: Laya_社区 发布时间: 20171221