• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 15 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0017 秒)

11. TS项目使用promise解决方案 [ 62%]

...   修改tsconfig.json文件如下   { "compilerOptions": { "module": "commonjs", "target": "es5", "noEmitHelpers": true, "importHelpers": true, "sourceMap": false, "lib":[ "es5", "dom", "es2015.promise" ] }, "exclude": [ "node_modules" ] } 其中lib用来支持promise,importHelpers用来支持 ...

来源: Laya_社区 发布时间: 20190520

12. tsconfig 中添加 "lib":["es5","es2015.promise"] ,之后无法引用lib.d.ts里面的内容,意味着console.log()都报错了 [ 61%]

...console.log,下面是配置文件: { "compilerOptions": { "module": "commonjs", "target": "es5", "noEmitHelpers": true, "sourceMap": false, "lib": [ "es5","es2015.promise", ], }, "exclude": [ "node_modules" ], } 2018-12-27 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结...

来源: Laya_社区 发布时间: 20181227

13. laya2.3微信开放域点发布后编译就会报错 [ 59%]

...译就会如下报错。 Incompatible tsconfig option. Module resolves to 'CommonJS'. This is incompatible with rollup, please use 'module: "ES2015"' or 'module: "ESNext"'. 附件 : --> PigGameOpenData.zip 2019-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

来源: Laya_社区 发布时间: 20191220

14. 学会编写d.ts声明文件(TypeScript-IDE篇(TS)-代码模式基础) [ 44%]

...这里以 `tsconfig.json` 为例: ``` { "compilerOptions": { "module": "commonjs", "outDir": "lib", "declaration": true, } } ``` 上例中我们添加了 `outDir` 选项,将 ts 文件的编译结果输出到 `lib` 目录下,然后添加了 `declaration` 选项,设置为 `true`,表示将会...

来源: Laya2.0_文档 发布时间: 20210715

15. ts加密md5码封装 [ 39%]

ts加密md5码封装 tsconfig.json { "compilerOptions": { "module": "commonjs", "target": "es6", "sourceMap": true }, "exclude": [ "node_modules" ] } test: let str = Md5.Instance.get_md5("123456"); console.log(str) //len:32 //e10adc3949ba59abbe56e057f20f883emd5.ts class Md5 { private static _inst:M...

来源: Laya_社区 发布时间: 20190321