自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 create-react-app 无法全局安装

执行一下命令行: sudo npm install -g create-react-app。输入管理员密码就可以了。

2022-11-01 16:10:20 209

原创 COS上传图片

COS上传import COS from 'cos-js-sdk-v5';

2022-10-28 16:29:13 277 1

原创 手写Promise

promise. 手写

2022-10-28 15:21:15 156

原创 JS 二维数组的排列组合

// 数组排列组合var arr = [ ['A', 'B', 'C'], [1, 2, 3], ['X', 'Y', 'Z'],];// 输出类似 A1X A1Y A1Z ...实现编程,首先要分析规律,有了规律之后再用代码将这种规律实现就好了分析一下,将计算过程拆解为两两相乘的过程首先计算[A, B, C] * [1, 2, 3],得到结果[A1, A2, A3, B1, B2, B3] 然后计算[A1, A2, A3, B1, B2, B3] * [..

2021-02-23 14:14:06 1294

转载 基于vue的组件

https://github.com/ElemeFE/element" element 饿了么出品的Vue2的web UI工具套件https://github.com/airyland/vux" Vux 基于Vue和WeUI的组件库https://github.com/ElemeFE/mint-ui" mint-ui Vue 2的移动UI元素https://github.com/ivi...

2018-11-28 15:13:19 678 1

原创 webpack 打包时 删除console.log()

  drop_console: true new webpack .optimize .UglifyJsPlugin({ minimize: true, compress: { drop_console: true } }) 

2018-10-22 10:56:18 1981

原创 express日志中间件 morgan

1. 安装 morgan    cnpm install morgan --save-dev2. 使用morgan    var express = require('express')    var morgan = require('morgan');    var fs = require('fs'); // 加了文件操作的模块    var app = express...

2018-10-22 10:49:49 1042

原创 js 时间格式化方法

1. 时间格式 "2018-10-22"function formatDate (val) {  if (!val) return ''  let date = new Date(val)  var y = date.getFullYear()  var m = date.getMonth() + 1  var d = date.getDate()  return y + '-' ...

2018-10-22 10:18:30 358

原创 Nodejs X-Frame-Options 响应头设置

1. const frameguard = require('frameguard')// // Don't allow me to be in ANY frames:// app.use(frameguard({ action: 'deny' }))// // Only let me be framed by people of the same origin:// app.use(...

2018-10-22 10:04:48 4743

空空如也

空空如也

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

TA关注的人

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