自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

.

  • 博客(6)
  • 收藏
  • 关注

原创 express 测试浏览器缓存

// 测试Server端 express// Cache-Control 设置缓存const express = require('express');const fs = require('fs');const path = require('path');app.get('/*.css', function(req, res) { /** * @title 设...

2019-06-24 11:51:07 1291

原创 Typescript注解

// test-descriptor.ts/** * 1.注解(装饰器)是一类特殊类型的声明,可以用在类、方法、构造器、属性和参数上。 * 2.其实本质上,定义一个注解,就是定义一个TypeScript方法,只是该方法必须符合官方的规范。 * 3.方法分别返回符合规范的函数闭包,参数target、propertyKey、descriptor。经测试,这三个参数中target和propert...

2019-06-21 11:21:21 12276

原创 typeScript interface和type区别

typeScript interface和type区别interface 参考资料 ----> https://www.tslang.cn/docs/handbook/interfaces.html// ts 自定义类型/** * Interface(接口) vs Type alias(类型别名) * 相同点-> 都可以描述一个对象或者函数 * ->...

2019-06-20 11:38:27 9615

原创 Typescript 记录

// 基础类型// 布尔值let isDonen: boolean = false;console.log('布尔值:', isDonen);// 数字类型let decLiteral: number = 6;console.log('数字类型:', decLiteral);// 字符串let nameStr: string = "bob";nameStr = "smith"...

2019-06-19 16:48:59 209

原创 Object.freeze和Object.seal

===============Object.freeze===============const freeObj = {name: 'zyn'}const freeObj1 = Object.freeze(freeObj)freeObj === freeObj1 // trueObject.isExtensible(freeObj1) // false 不可以被扩展Object.getO...

2019-06-19 16:24:17 358

原创 vue provide / inject

vue 使用 provide,inject。2.2.0 新增provide / inject 介绍provide 用法inject 用法实现 provide / inject 可监听provide / inject 介绍1. provide 和 inject 主要为高阶插件/组件库提供用例。并不推荐直接用于应用程序代码中。2. 这对选项需要一起使用,以允许一个祖先组件向其所有子孙后代注入一个...

2019-06-12 09:56:44 887

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除