第一步:安装filemanager-webpack-pluginnpm install filemanager-webpack-plugin --save-dev第二步在vue.config.js中配置引入filemanager-webpack-pluginconst FileManagerPlugin = require('filemanager-webpack-plugin')修改configureWebpack项配置,增加打包操作配置方式一:configureWebpack: { plugins: [ new FileManagerPlugin({ events: { onEnd: { delete: ['./dist.zip'], archive: [{ source: './dist', destination: './dist.zip' }] } }

封装后退方法let XBack = {}; XBack.STATE = 'x - back' XBack.element XBack.onPopState = function(event) { event.state === XBack.STATE && XBack.fire() XBack.record(XBack.STATE) //初始化事件时,push一下 } XBack.record = function(state) { console.log(state, location.href) /* pushState用于向history对象添加当前页面的记录,并且改变浏览器地址栏的URL; 即历史记录里加入新的url地址,浏览器地址栏也会变成新的相对URL */ history.pushState(state, null, location.href) } XBack.fire = function() { var event = document.createEvent('Events')

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .table{ overflow:auto; width:400px; height:300px; /* 固定高度 */ border:1px solid #999; border-bottom: 0; border-right: 0; } table { border-collapse:separate; table-layout: fixed; width: 100%; /* 固定寬度 */ } td, th { border-right :1px solid #999; border-b

常用命令n list // 展示当前安装的所有版本 n 14.17.4 // 安装指定版本 n latest // 安装最新版本 n stable // 安装稳定版本

表单交互.auth-form-fieldset input:hover,.auth-form-fieldset select:hover,.auth-form-fieldset textarea:hover { border: 1px solid rgba(47,184,241,.4) } .auth-form-fieldset input::-moz-placeholder,.auth-form-fieldset select::-moz-placeholder,.auth-form-fieldset textarea::-moz-placeholder { color: #35506b } .auth-form-fieldset input::placeholder,.auth-form-fieldset select::placeholder,.auth-form-fieldset textarea::placeholder { color: #35506b } .auth-form-fieldset input:focus,.auth-form-f