摘要: 1: javaScript async/await: 调用async函数的时候,是异步的,函数后面的代码继续执行。! async / await是ES7的重要特性之一,也是目前社区里公认的优秀异步解决方案 Async(异步) 函数或多或少允许你编写顺序的 JavaScript 代码,而无需将所有逻辑 阅读全文
posted @ 2018-04-06 23:05 刘大飞 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 一:Store介绍: state: 相当于数据 action: action去commit mutations mutation: 只有mutation 才能改变state 例: const store = new Vuex.Store({ state: { count:0 }, mutations 阅读全文
posted @ 2018-04-06 15:45 刘大飞 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 首页: http://localhost:8002/#/, 登录页面如下: index.js文件中如下的路由配置,转过去看login.vue是如何实现的。 const routes = [ { path: '/', component: login },(这里一个问题: login.vue是如何与i 阅读全文
posted @ 2018-04-06 13:31 刘大飞 阅读(655) 评论(0) 推荐(0) 编辑