js封装 /* * 2、闭包的封装方式,在这个封装方法中,所有的实例成员都共享属性和方法 * 使得所有得方法和属性都私有且对象间共享 * */ var Person=(function(){ /*共享函数*/ let checkNo=function(no){ if(!no.constructor=="strin...
webpack打包性能图形化分析 安装webpack-bundle-analyzer Webpack.config.js 引入 let BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; 配置plugin: plugins: [n...
axios拦截添加功能 import axios from 'axios' import { Message , MessageBox } from 'element-ui' import store from '../store' import { getToken } from '@/utils/auth' // 创建ax...
centos7设置时区 # timedatectl list-timezones # 列出所有时区 # timedatectl set-local-rtc 1 # 将硬件时钟调整为与本地时钟一致, 0 为设置为 UTC 时间 # timedatectl set-timezone Asia/Shanghai # 设置系统时区为上...
nodemailer node发送自定义邮箱邮件 const nodemailer = require ( "nodemailer" ); //发送邮件的node插件 const smtpTransport = require ( 'nodemailer-smtp-transport' ); function sendMail (HtmlData) {...
nginx知识 nginx 重写(伪静态) https://juejin.im/post/5c85a64d6fb9a04a0e2e038c?utm_source=gold_browser_extension proxy_pass 后跟的服务器URL值是否以 / 结尾的区别: 若 Nginx 收到请求为 https://ngxin_server_n...
shell脚本执行错误 $'\r':command not found Linux下有命令dos2unix 你只要输入dos2unix *.sh就可以完成转换工作了 如果命令不存在的话就用如下命令安装 yum install dos2unix -y
centos7更换源 yum 的使用是很方便的,可能出现的问题就是源的下载速度不理想,所以需要更换。它的配置文件在 /etc/yum.conf ,源列表在 /etc/yum.repos.d 。 备份mv base.repo baserepo.repo.backup wget -o base.repo http://mirro...
babel 转es5 "@babel/core" : "^7.0.0" , "@babel/plugin-transform-runtime" : "^7.3.4" , "@babel/preset-env" : "^7.3.4" , "@babel/runtime" : "^7.3.4" , "babel-loader"...
Linux Supervisor 守护进程基本配置 方法一、使用yum命令安装(推荐) $ sudo su - #切换为root用户 # yum install epel-release # yum install -y supervisor # systemctl enable supervisord # 开机自启动 # systemctl start...