会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Ajanuw
做自己的King
博客园
首页
管理
上一页
1
···
28
29
30
31
32
33
34
35
36
···
40
下一页
2018年10月19日
ts 索引签名 无视多余的属性类型
摘要: 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
阅读(489)
评论(0)
推荐(0)
2018年10月9日
Nestjs 获取cookie
摘要: 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
阅读(1663)
评论(0)
推荐(0)
2018年10月6日
vscode ctrl+滚轮调整字体大小
摘要: "editor.mouseWheelZoom": true
阅读全文
posted @ 2018-10-06 20:35 Ajanuw
阅读(2413)
评论(0)
推荐(1)
2018年10月1日
Nest.js WebSocket
摘要: 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
阅读(3676)
评论(0)
推荐(2)
2018年9月14日
react-app 编写测试
摘要: jest Enzyme 文档 为什么要写测试 单元测试(unit testing)指的是以软件的单元(unit)为单位,对软件进行测试。单元可以是一个函数,也可以是一个模块或组件。它的基本特征就是,只要输入不变,必定返回同样的输出。 单元测试的步骤如下 准备所有的测试条件 it('test a')
阅读全文
posted @ 2018-09-14 00:40 Ajanuw
阅读(97)
评论(0)
推荐(0)
2018年9月13日
Dockerfile
摘要: https://www.cnblogs.com/panwenbin-logs/p/8007348.html github 文档 docker 官方文档 Dockerfile 用于制作docker镜像的设计稿 # 使用基础镜像,本地没有会从registry拉取,from必须是第一个指令 from pe
阅读全文
posted @ 2018-09-13 13:24 Ajanuw
阅读(236)
评论(0)
推荐(0)
2018年9月10日
ajax 上传文件,监听进度(progress)
摘要: "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
阅读(4183)
评论(0)
推荐(0)
2018年9月9日
npm 发布包(publish)
摘要: 登录 查看当前所在位置包的信息 查看npm配置 λ npm config list λ npm config set registry http://registry.npmjs.org/ // 把原来配置的淘宝源切换回npm λ npm whoami // 切换后再看下当前登录的用户 发布 再次发
阅读全文
posted @ 2018-09-09 21:04 Ajanuw
阅读(363)
评论(0)
推荐(0)
2018年9月2日
Nestjs 上传文件
摘要: 官网文档 $ npm i -D @types/multer 上传单文件 import { Post, UseInterceptors, UploadedFile } from '@nestjs/common'; import { FileInterceptor } from '@nestjs/pla
阅读全文
posted @ 2018-09-02 20:55 Ajanuw
阅读(4760)
评论(0)
推荐(1)
Nestjs 设置静态文件,public
摘要: "Docs: https://docs.nestjs.com/techniques/mvc" 新版本需要设置为NestExpressApplication main.js 加载静态页面 yarn add ejs sendFile
阅读全文
posted @ 2018-09-02 17:35 Ajanuw
阅读(5157)
评论(0)
推荐(1)
上一页
1
···
28
29
30
31
32
33
34
35
36
···
40
下一页