![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Vue
冬天不下雪i
这个作者很懒,什么都没留下…
展开
-
Vuex的基本使用
1、安装vuex依赖包 npm install vuex --save 2、导入vuex包 在store.js中导入 import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) export default new Vuex.Store({ state: { }, mutations: { }, actions: { } }) 3、创建store对象 const store = new Vuex.Store({ // sta原创 2021-04-04 01:23:56 · 118 阅读 · 0 评论 -
Vue第一天 : 模板语法&计算属性和监视
一 : 双大括号表达式 toUpperCase() 表示转换为大写 <div id="app"> <h2>1.双大括号表达式</h2> <p>{{msg}}</p> <!--testContent--> <p>{{msg.toUpperCase()}}</p> ...原创 2019-07-06 00:10:36 · 111 阅读 · 0 评论