09 2020 档案
摘要:import axios from 'axios' import qs from 'qs' // 请求拦截 axios.interceptors.request.use(config => { // 此处可以封装一些加载状态 return config }, error => { return Pr
阅读全文
摘要:1.识别ie浏览器 export const isIe = () => { let explorer = window.navigator.userAgent; //判断是否为IE浏览器 if (explorer.indexOf("MSIE") >= 0) { return true; }else
阅读全文
摘要:1、在公共方法中(如 public.js 中),加入函数防抖和节流方法 //防抖 export function _debounce(fn, delay) { var delay = delay || 200; var timer; return function () { var th = thi
阅读全文
摘要:getNowDate() { let date = new Date(); let y = date.getFullYear(); let m = date.getMonth() + 1; let d = date.getDate(); let H = date.getHours(); let mm
阅读全文