摘要: 1 function rems(doc: any, win: any): void { 2 let docEl = doc.documentElement, 3 resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', 4 recalc = function () { ... 阅读全文
posted @ 2019-01-15 16:09 _小狐狸 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: get方法 patch方法 阅读全文
posted @ 2019-01-15 15:45 _小狐狸 阅读(723) 评论(0) 推荐(0) 编辑
摘要: // http request 请求拦截器,有token值则配置上token值 axios.interceptors.request.use( config => { if (token) { // 每次发送请求之前判断是否存在token,如果存在,则统一在http请求的header都加上token,不用每次请求都手动添加了 config.headers.Authori... 阅读全文
posted @ 2019-01-15 15:41 _小狐狸 阅读(10569) 评论(2) 推荐(1) 编辑
摘要: 在做项目的过程中,项目越来越大,后面导致项目无法正常启动,查了原因是因为node 溢出了。 先看看溢出时报的错 解决办法: increase-memory-limit插件 1.在package.json中修改添加内存大小 2. 安装increase-memory-limit插件 注意: 安装报错时, 阅读全文
posted @ 2019-01-15 14:37 _小狐狸 阅读(2555) 评论(0) 推荐(0) 编辑