大约有 2 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0020 秒)
...</span>"; div.on(Laya.Event.LINK,this,(data:any)=>{ Laya.Browser.window.location.href=data; }); Laya.stage.addChild(div); 运行效果: 点击文字链接可以打开浏览器访问网址 3.6 实现html页面跳转 示例如下: var iHtml:HTMLIframeElement = new HTMLIframeElement(); Lay...
来源: Laya3.0_文档 发布时间: 20230303
...ript.test", "hello"); console.log(ret); //ok 特别的用法,可以通过window对象调用eval执行脚本,用于一些简单的需求,例如: let str = await Editor.scene.runScript("window.eval", ` (function() { //do something return "hello"; }()) `); 4、场景进程向UI进程发送消...
来源: Laya3.0_文档 发布时间: 20251010