注:在学习及日常工作中遇到的vue问题–个人的学习笔记(写写东西加深理解 更多的是给自己看的,里面可能会有些理解上的错误~~)
事件修饰符
1 | Vue中事件修饰符 |
过滤器
1 | 1. 全局过滤器 |
vue实例–设置渲染区域的两种写法
1 | // 创建 Vue 实例,得到 ViewModel vm |
自定义指令
1 | // v-focus='value' |
按键修饰符
1 | 使用:v-on:keyup.enter |
axios
注:单独写篇博客介绍吧
组件创建/使用
1 | 注册全局组件: |
使用hash值模拟路由实现
1 | // hash # 不会刷新页面以及发送HTTP请求,只是实现客户端页面的定位 |
路由
1 | 1. const login = { |
watch、computed属性使用
1 | UI界面:name = xing + ming |
Vuex使用
1 | // 全局环境实现数据共享 |