会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Daxian1996
博客园
首页
新随笔
联系
订阅
管理
2020年4月17日
Vuex的学习和使用
摘要: 什么是vuex? Vuex 是专门为 Vue.js 设计的状态管理库,采用集中式存储管理应用的所有组件的状态,并以相应的规则保证状态以一种可预测的方式发生变化。 简单地说就是采用全局单例模式,将组件的共享状态抽离出来管理,使组件树中的每一个位置都可以获取共享的状态(变量)或者触发行为。 额,或者更直
阅读全文
posted @ 2020-04-17 17:54 Daxian1996
阅读(118)
评论(0)
推荐(0)
2020年4月16日
Vue项目中Echarts的简单使用
摘要: 安装Echarts依赖 npm install echarts -S 创建图表 首先需要全局引入在main.js中 // 引入Echarts import echarts from 'echarts' Vue.prototype.$echarts = echarts 在index.vue中 <tem
阅读全文
posted @ 2020-04-16 17:48 Daxian1996
阅读(351)
评论(0)
推荐(0)
Vue项目中封装Echarts
摘要: 话不多说直接进入主题 安装echarts依赖 npm install echarts -S 首先需要全局引入在main.js中 // 引入echarts import echarts from 'echarts' Vue.prototype.$echarts = echarts 将Echarts封装
阅读全文
posted @ 2020-04-16 17:39 Daxian1996
阅读(1040)
评论(0)
推荐(0)
2020年4月1日
vue 项目中简单使用 vuex
摘要: vuex 的目录结构 A模块内容 B模块内容 vuex 模块化 组件中引入 A组件 B组件 具体可以参考 https://www.cnblogs.com/yeziTesting/p/7182904.html
阅读全文
posted @ 2020-04-01 09:55 Daxian1996
阅读(184)
评论(0)
推荐(0)
vue-cli 3.0 解决跨域问题
摘要: 一 在根目录创建 vue.config.js 二 在vue.config.js中写以下代码 上代码 // vue.config.js module.exports = { devServer: { proxy: { '/api': { target: 'https://www.XXX.net/',
阅读全文
posted @ 2020-04-01 09:29 Daxian1996
阅读(2708)
评论(0)
推荐(0)
2020年3月5日
前端CSS初始化样式
摘要: 前端初始化样式 body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, p, blockquote, th, td {
阅读全文
posted @ 2020-03-05 19:16 Daxian1996
阅读(738)
评论(0)
推荐(0)
公告