大约有 233 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0034 秒)
...17951 赞同来自: 代码,帮我看看!oc直接调用可以执行js的alert 2017-10-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 fqny17951 相关问题 看了其他引擎才发现 LAYA 真的太太太太好用了!!!! ...
来源: Laya_社区 发布时间: 20171018
...s:0 text: IOS HttpRequest var data = { rechargeId:"1", consumerId:"533", } alert(JSON.stringify(data)); hr = new HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); var headers = []...
来源: Laya_社区 发布时间: 20170620
....addChild(playSence); },function(data){ console.log('加入游戏失败'); alert('加入游戏失败'); GameUnitls.showToast(data); }); }else{ alert('金币数必须大于500才能开始游戏'); } } 这样进入playSence 页面。。 在playSence 里面退出按钮点击事件: _proto.onexitBtnCl...
来源: Laya_社区 发布时间: 20171219
...来自: 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
...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
...位到了,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
...btn1 extends Laya.Script { constructor(){super();} onEnable(){} onClick(){ alert("id="+this.id); //这里有一个id,但是系统自动生成的,无法获知这个id代表哪个按钮被点(因为我有4个按钮都绑了这个js) alert("name="+this.name); //未定义不知道怎么获取当...
来源: Laya_社区 发布时间: 20181029