上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 40 下一页
摘要: "editor.mouseWheelZoom": true 阅读全文
posted @ 2018-10-06 20:35 Ajanuw 阅读(2403) 评论(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 阅读(3653) 评论(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 阅读(4155) 评论(0) 推荐(0) 编辑
摘要: 登录 查看当前所在位置包的信息 查看npm配置 λ npm config list λ npm config set registry http://registry.npmjs.org/ // 把原来配置的淘宝源切换回npm λ npm whoami // 切换后再看下当前登录的用户 发布 再次发 阅读全文
posted @ 2018-09-09 21:04 Ajanuw 阅读(351) 评论(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 阅读(4729) 评论(0) 推荐(1) 编辑
摘要: "Docs: https://docs.nestjs.com/techniques/mvc" 新版本需要设置为NestExpressApplication main.js 加载静态页面 yarn add ejs sendFile 阅读全文
posted @ 2018-09-02 17:35 Ajanuw 阅读(5018) 评论(0) 推荐(1) 编辑
摘要: Nginx 扩展模块 certbot文档 看文档,文档是最新的 如果执行 "certbot --nginx" 自动配置失败了, 那么可以执行 "certbot certonly -d ajanuw.fun" 获取或更新证书,然后在你的nginx中导入证书 nginx.conf server { # 阅读全文
posted @ 2018-08-29 00:22 Ajanuw 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 传递props import React, {Component, VFC, ReactNode } from 'react'; const Hello: VFC<{ body: ReactNode }> = ({ body }) => { return <div>{body}</div>; }; 阅读全文
posted @ 2018-08-27 16:35 Ajanuw 阅读(267) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 40 下一页