上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 58 下一页
摘要: 一 .postcssrc.js 众所周知为兼容所有浏览器,有的CSS属性需要对不同的浏览器加上前缀,然而有时添加一条属性,需要添加3~4条类似的属性只是为了满足浏览器的兼容,这不仅会增加许多的工作量,还会使得你的思路被打断。 如何解决这个问题? 处理CSS前缀问题的神器——AutoPrefixer。 阅读全文
posted @ 2018-04-08 16:41 刘大飞 阅读(1166) 评论(0) 推荐(0) 编辑
摘要: 一:package.json文件详解 管理你本地安装的npm包 。定义了这个项目所需要的各种模块,以及项目的配置信息(比如名称、版本、许可证等元数据)。npm install命令根据这个配置文件,自动下载所需的模块,也就是配置项目所需的运行和开发环境。 scripts字段: 指定了运行脚本命令的np 阅读全文
posted @ 2018-04-08 16:28 刘大飞 阅读(433) 评论(0) 推荐(0) 编辑
摘要: vue2 + vuex + vue-router + webpack + ES6/7 + less + element-ui 1:vuex: Vuex 是一个专为 Vue.js 应用程序开发的状态管理模式: 让我们从一个简单的 Vue 计数应用开始: 这个状态自管理应用包含以下几个部分: state 阅读全文
posted @ 2018-04-08 14:59 刘大飞 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 1: HeaderTop.vue : 面包屑:el-breadcrumb 定义面包屑, separator是分隔符。 el-breadcrumb-item: 是面包屑中用 分隔符 分开的多个items. $route.meta的数据来源是router的定义: v-for="(item, index) 阅读全文
posted @ 2018-04-08 12:23 刘大飞 阅读(1047) 评论(0) 推荐(1) 编辑
摘要: 1: shortList页面代码如下: el-table: data = "tableData": table和这个tableData绑定。 el-table-column: 阅读全文
posted @ 2018-04-07 23:12 刘大飞 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 1: 登录后系统页面如下: 对应代码: <template> <div class="manage_page fillcontain"> <el-row style="height: 100%;"> <el-col :span="4" style="min-height: 100%; backgro 阅读全文
posted @ 2018-04-07 22:58 刘大飞 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 1:import {login, getAdminInfo} from '@/api/getData'(从api/getData.js中import login函数。) 看一下如下的getData.js文件,其中export了login函数,所以其他地方可以调用。 import fetch from 阅读全文
posted @ 2018-04-07 21:31 刘大飞 阅读(18975) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 58 下一页