大约有 21 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0032 秒)
...ya2.2问题,有没有遇到的? 子域所有代码 (function () { 'use strict'; class GameConfig { constructor() { } static init() { var reg = Laya.ClassUtils.regClass; } } GameConfig.width = 640; GameConfig.height = 1136; GameConfig.scaleMode = "fixedwidth"; GameConfig.screenMode = "none"; Ga...
来源: Laya_社区 发布时间: 20200104
...0-09-01 09:23 官方链接 - https://github.com/sindresorhu ... ex.js 'use strict'; const modifyFilename = require('modify-filename'); module.exports = (pth, hash) => { if (!(pth && hash)) { throw new Error('`path` and `hash` required'); } return modifyFilename(pth, (filename, ext) => ...
来源: Laya_社区 发布时间: 20200831
...:47 好像不行,分包内的game.js 和main.js里面有一行 "use strict";console.log("subRes loaded;");这个就行了,我这边是这样 1597917359用户 • 2021-01-20 14:47 我这个 里面有main。js 是为什么呢 1597917359用户 • 2021-01-23 16:44 您好 是需...
来源: Laya_社区 发布时间: 20201204
...bgl.js"></script> </body> </html> <script> "use strict"; var test = {}; test.text = new laya.display.Text(); // in this line is error , so you can't defined class before "Laya.init" Laya.init(800,600); //test.text = new laya.display.Text(); // in this line is right test.te...
来源: Laya_社区 发布时间: 20170302
...dTemplate", "title": "build template" } ] },extension.js 内容如下 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const vscode = require("vscode"); function activate(context) { let disposable = vscode.commands.registerCommand('extension.buildTemplate', () => { vsc...
来源: Laya_社区 发布时间: 20180728
...始就出这错误了 以下附上代码 : (function () { 'use strict'; class GameMain extends Laya.Scene { constructor(){ super(); GameMain.instance = this; Laya.MouseManager.multiTouchEnabled = false; ...
来源: Laya_社区 发布时间: 20201110
...e("libs/laya.wxmini.js", function(require, module, exports, process){ "use strict"; window = window || global, window.layalib || (window.layalib = function (i, e) { (window._layalibs || (window._layalibs = )).push({ f: i, i: e }); }), window.layalib(function (i, e, t) { console 窗口报错如...
来源: Laya_社区 发布时间: 20190319
...: Mismatched anonymous define() module: function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const t = require("./test/TestExportClass"); // 程序入口 class GameMain { constructor() { // Laya.init(600,400); console.log("start"); var exportCls ...
来源: Laya_社区 发布时间: 20171116
...更高效。window.Laya=window.Laya||{}; (function (exports, Laya) { 'use strict'; class Physics_Physics_CollisionFiltering { constructor() { this.preMovementX = 0; this.preMovementY = 0; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); ...
来源: Laya2.0_示例 发布时间: 20250221
...----------------------------------- (function (exports, Laya) { 'use strict'; const TiledMapFlipConst = 1073741824; const TiledMapFlipConstHalf = TiledMapFlipConst / 2; class GridSprite extends Laya.Sprite { constructor() { super(...arguments); ...
来源: Laya_社区 发布时间: 20220627