大约有 2,694 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0077 秒)
...rse (<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/game/code.js:1:514598) at t.e.runWith (http://127.0.0.1:37389/game/code.js:1:11995) at Function.success (http://127.0.0.1:37389/game/code.js:1:46588...
来源: Laya_社区 发布时间: 20180725
... vm = require('vm'); let path = __dirname + "/../bin/js/Functions.js"; let code = fs.readFileSync(path, {encoding:'utf8'}); vm.runInThisContext(code); describe('Functions', function() { it('hello', function() { const result = hello(); expect(result).toBe('Hello World!'); }); }); 第二个是 __te...
来源: Laya_社区 发布时间: 20181214
laya的ide如何import js并调用里面的类和方法?VS Code正常。 // import {$root} from "../libs/protobuf/area.js"; // import ProtoArea = com.bee.protobuf.ProtoArea; import com from "area"; 这几种办法都不行。根本找不到里面的定义。按照官方文档的说法,.d.ts放...
来源: Laya_社区 发布时间: 20171116
VSCODE高效再+1,自动刷新 在官方文档中,已经介绍了如何用gulp在VS code中实现监听代码变化,保存后自动编译。 VSCode高效开发工作流配置指南 但是我们还需要手动启web服务,手动刷新。 这里又在此基础上,进一步添加了gulp-conn...
来源: Laya_社区 发布时间: 20200908
...提交 1 个回复 Laya_XS 赞同来自: /** * <p>绘制 当前<code>Sprite</code> 到 <code>Canvas</code> 上,并返回一个HtmlCanvas。</p> * <p>绘制的结果可以当作图片源,再次绘制到其他Sprite里面,示例:</p> * * var ht...
来源: Laya_社区 发布时间: 20180826
....setZoom(17); } } onError(e) { 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 InputDevic...
来源: Laya2.0_示例 发布时间: 20251130
...Name is not a function at t.e.parseFont (http://127.0.0.1:63921/game/code.js:1:12413) at e.s.onLoaded (http://127.0.0.1:63921/game/code.js:1:176642) at e.u (http://127.0.0.1:63921/game/code.js:1:295812) at Image._image._image.onload (http://127.0.0.1:63921/game/code.js:1:4819...
来源: Laya_社区 发布时间: 20180530
...布到微信小游戏到的目录结构如下图: 核心代码全部在code.js中(1个文件里). 但微信官网要求"主域"与"开发数据域"必须是2个单独文件,且在game.json中配置, 请问要如果结合LayaAir的JS语言API实现排行榜功能? 求一个简小精干的demo,谢...
来源: Laya_社区 发布时间: 20180809
...2.1.5 打开LayaAirIDE后提示 Version mismatch! global tsc (3.0.1) != VS Code's language service (2.1.5). Inconsistent compile errors might occur 可以使用各种办法禁用本地tsc,但是内置的 tsc 2.1.5始终不起作用 附件 : --> 2018-09-05 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20180905
...mous>) at Function.MiniAdpter.getJson (http://127.0.0.1:9973/game/code.js:20980:15) at Function.MiniLoader.onReadNativeCallBack (http://127.0.0.1:9973/game/code.js:21386:25) at Handler.__proto.runWith (http://127.0.0.1:9973/game/code.js:712:41) at Function.success (http://...
来源: Laya_社区 发布时间: 20180205