大约有 85 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0043 秒)
加载模块报错 想要引入外部的库:import Collections = require('typescript-collections');配置如下:{ "compilerOptions": { "module": "commonjs", "target": "es5", "sourceMap": true, "moduleResolution": "node", "lib": [ "dom", "es5" ] }, "exclude": [ // "node_modules" ] }报错 Refere...
来源: Laya_社区 发布时间: 20180107
...w.LayaSimple.window.LayaSimple @ code.js:54041 (anonymous) @ code.js:54050 require @ WAGame.js:1 (anonymous) @ WAGame.js:1 (anonymous) @ game.js? [sm]:2 require @ WAGame.js:1 (anonymous) @ gamePage.html:175 请问这个问题怎么解决? 2018-11-03 添加评论 免费帖 --> 分享 微博 QZON...
来源: Laya_社区 发布时间: 20181103
...那边将matter.js文件导入 ,在game.js里面加入 window.Matter = require("./matter.js"); 这样程序里面可以获取到引用并正常使用,但有些手机不支持这样写会卡死在微信初始化小游戏这地方(测试过这样这地方这样导入JS就百分百卡死 如果...
来源: Laya_社区 发布时间: 20180508
...737/game/code.js:28297:7 at http://127.0.0.1:49737/game/code.js:28300:3 at require (http://127.0.0.1:49737/game/__ ... :13675) at http://127.0.0.1:49737/game/__ ... 13424 at http://127.0.0.1:49737/game/game.js:4:1 at require (http://127.0.0.1:49737/game/__ ... :13675) 2018-05-10 添加评论 免费...
来源: Laya_社区 发布时间: 20180510
...29 @b456410:放在哪都得引 Laya_Aaron • 2018-07-05 11:30 是不是想require? b456410 • 2018-07-05 13:00 不想require,我预想是 var tool = new Tool(); tool.haha();最希望是这样的写法 Laya_Aaron • 2018-07-05 13:06 @b456410:看看引擎库里面怎么弄的。 b4564...
来源: Laya_社区 发布时间: 20180705
...); }); 复制代码[/code] 准备妥当开始编写public.js[code]var fs = require('fs'); // 引入fs模块 var path = require('path'); const child_process = require("child_process"); function deleteall(path) { // lear var files = []; if(fs.existsSync(path)) { files = fs.readdirSync(path); files.for...
来源: Laya_社区 发布时间: 20200925
...博 QZONE 微信 Laya_Aaron 赞同来自: 这没有例子,是否能直接require 是看你安装的时候是不是 配了全局的环境变量, 如果不是,你可以改这个文件加入路径,或者把下载的module放到我们默认的node_module路径里。 2018-03-14 0 0 分享 微博 ...
来源: Laya_社区 发布时间: 20180314
...e.js:21112:7 at http://127.0.0.1:52880/game/code.js:21113:3 at require (http://127.0.0.1:52880/game/__ ... :13675) at http://127.0.0.1:52880/game/__ ... 13424 at http://127.0.0.1:52880/game/game.js:2:1 at require (http://127.0.0.1:52880/game/__dev__/WAGame.js:3:13675) ...
来源: Laya_社区 发布时间: 20180504
...s:349 at laya.ui.js:1 at wrapFn (gameContext?id=1:51) at require (VM37 WAGameSubContext.js:2) at VM37 WAGameSubContext.js:2 at index.js? [sm]:12 at wrapFn (gameContext?id=1:51) at require (VM37 WAGameSubContext.js:2) at VM37 WAGameSubContext.js:2 2021-...
来源: Laya_社区 发布时间: 20210322
...cj001 • 2018-03-08 17:14 还不够明细吗,要我写代码出来吗、require("/libs/laya.core.js"); require("/libs/laya.core.min.js") qian • 2018-03-08 17:17 这里已经不用改了啊直接发布的时候点微信小游戏就好了 fcj001 • 2018-03-08 17:30 亲,我...
来源: Laya_社区 发布时间: 20180308