摘要:
1. 声明式和命令式编程 2. MVVM模型 view--ViewModel(事件监听、数据绑定)--Model 3. options data属性: vue2中可以是一个对象,推荐函数 vue3中必须是一个函数,否则会报错 methods属性 不能是箭头函数,因为this指向window,不能获取 阅读全文
摘要:
路由介绍 映射表,决定数据的流向 页面不刷新的方式 hash,监听hashchange事件 histroy模式:六种模式 pushState replaceState popState go forward back vue-router 基本使用 安装vue-router 创建路由对象 histo 阅读全文
摘要:
Vuex 基本使用 store/index.js import { createStore } from "vuex"; const store = createStore({ state: () => ({ counter:0 }) }) export default store App.vue 阅读全文