上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 40 下一页
摘要: interface SquareConfig { color?: string; width?: number; [propName: string]: any; } function asd(opt: SquareConfig): any { } asd({color: 'red', width: 阅读全文
posted @ 2018-10-19 22:19 Ajanuw 阅读(483) 评论(0) 推荐(0) 编辑
摘要: cookie-parser Docs npm i cookie-parser main.ts import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import * as cooki 阅读全文
posted @ 2018-10-09 21:11 Ajanuw 阅读(1636) 评论(0) 推荐(0) 编辑
摘要: "editor.mouseWheelZoom": true 阅读全文
posted @ 2018-10-06 20:35 Ajanuw 阅读(2402) 评论(0) 推荐(1) 编辑
摘要: Docs: "https://docs.nestjs.com/websockets/gateways" λ yarn add @nestjs/websockets λ nest g ga events events.gateway.js app.module.ts 客户端 监听进入与离开 impor 阅读全文
posted @ 2018-10-01 13:01 Ajanuw 阅读(3639) 评论(0) 推荐(2) 编辑
摘要: jest Enzyme 文档 为什么要写测试 单元测试(unit testing)指的是以软件的单元(unit)为单位,对软件进行测试。单元可以是一个函数,也可以是一个模块或组件。它的基本特征就是,只要输入不变,必定返回同样的输出。 单元测试的步骤如下 准备所有的测试条件 it('test a') 阅读全文
posted @ 2018-09-14 00:40 Ajanuw 阅读(90) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/panwenbin-logs/p/8007348.html github 文档 docker 官方文档 Dockerfile 用于制作docker镜像的设计稿 # 使用基础镜像,本地没有会从registry拉取,from必须是第一个指令 from pe 阅读全文
posted @ 2018-09-13 13:24 Ajanuw 阅读(230) 评论(0) 推荐(0) 编辑
摘要: "mdn" 前端代码 "github" 点击上传 async function main() { const l = console.log let fileEle = document.querySelector(' a') fileEle.onchange = e = { let files = 阅读全文
posted @ 2018-09-10 00:07 Ajanuw 阅读(4139) 评论(0) 推荐(0) 编辑
摘要: 登录 查看当前所在位置包的信息 查看npm配置 λ npm config list λ npm config set registry http://registry.npmjs.org/ // 把原来配置的淘宝源切换回npm λ npm whoami // 切换后再看下当前登录的用户 发布 再次发 阅读全文
posted @ 2018-09-09 21:04 Ajanuw 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 官网文档 $ npm i -D @types/multer 上传单文件 import { Post, UseInterceptors, UploadedFile } from '@nestjs/common'; import { FileInterceptor } from '@nestjs/pla 阅读全文
posted @ 2018-09-02 20:55 Ajanuw 阅读(4708) 评论(0) 推荐(1) 编辑
摘要: "Docs: https://docs.nestjs.com/techniques/mvc" 新版本需要设置为NestExpressApplication main.js 加载静态页面 yarn add ejs sendFile 阅读全文
posted @ 2018-09-02 17:35 Ajanuw 阅读(4980) 评论(0) 推荐(1) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 40 下一页