![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
「已注销」
生活没有枸杞,只剩前进
展开
-
vue生命周期函数
生命周期图随着vue学习,生命周期图参考价值会越来越高。init events and lifecycle(初始化事件和生命周期)init injections or reactivity(初始注入和反应)has el option(具有el 选项)when vm.mount(el)iscalled(vm.mount(el) is called(vm.mount(el)iscall...原创 2019-01-24 22:13:59 · 281 阅读 · 0 评论 -
vue的css预处理器stylus
简介css出了sass、less预处理器外,vue使用更加简单的写法预处理器stylus。全面的 stylus 知识可以参考官方文档,或者张鑫旭翻译的中文文档。stylus的花括号和分号是可以省略的,不仅如此,冒号也是可以省略的,color: powderblue 你可以写成 color powderblue,没有问题。安装前提已经安装了nodejs。$ npm install st...原创 2019-01-28 23:28:30 · 424 阅读 · 0 评论 -
vue路由死循环:RangeError: Maximum call stack size exceeded
先放图代码如下 //路由拦截 import {getToken} from './http/auth' // const whiteList = ['/login', '/auth-redirect']// 路由白名单 router.beforeEach((to, from, next) => { if(to.name=='login'){ ...原创 2019-04-23 15:41:03 · 3560 阅读 · 0 评论 -
vue cli3的http请求封装
import Cookies from 'js-cookie'const TokenKey = 'access_token'const contractNo = 'contractNo'export function getToken() { return Cookies.get(TokenKey)}export function setToken(token) { ret...原创 2019-04-23 15:55:47 · 3228 阅读 · 0 评论