封装后退方法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

chrome浏览器只要之前有”访问网站域名有做访问http网址自动跳转https处理“的历史记录,后面再通过http访问确实会有”访问http网址自动跳转https“问题,解决方法:1.地址栏输入: chrome://net-internals/#hsts2.在打开的页面Query HSTS/PKP domain处输入域名搜索3.找到底部Delete domain security policies一栏,输入想处理的域名,点击delete