js封装

/* * 2、闭包的封装方式,在这个封装方法中,所有的实例成员都共享属性和方法 * 使得所有得方法和属性都私有且对象间共享 * */ var Person=(function(){ /*共享函数*/ let checkNo=function(no){ if(!no.constructor=="strin...

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 # 设置系统时区为上...

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"...