
前端
文章平均质量分 92
前端
miracleo_
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
idea vue快速入门
首先在idea下创建一个空的项目 添加一个demo模块 terminal:npm install nrm -g // 全局安装nrm terminal:cd demo terminal:npm init -y // 初始化模块 terminal:npm install vue --save // 模块内安装vue 创建hello.html <!DOCTYPE html&g...原创 2019-08-19 16:06:54 · 663 阅读 · 0 评论 -
vue.js: [Vue warn]: Unknown custom element: <xxxx> - did you register the component correctly?
我的原错误为: vue.js:634 [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option. 源码: <!DOCTYPE html> <html...原创 2019-08-20 11:47:58 · 38123 阅读 · 0 评论 -
一、vue学习笔记:vue-cli3创建vue项目,并配置路由
参考网址: https://www.jianshu.com/p/d6de1662a2c2原创 2019-09-03 21:09:17 · 1492 阅读 · 0 评论 -
二、vue3学习笔记:路由高级
文章目录一、路由组件传参:1. 布尔模式2. 普通页面模式3. 函数模式二、html5 history模式三、导航守卫1. 全局守卫1)router.beforeEach : 全局前置守卫2)后置钩子2. 专供于页面的守卫1)beforeRouteEnter2) 页面后置钩子:beforeRouteLeave 一、路由组件传参: 1. 布尔模式 /view/argu.vue <templ...原创 2019-09-06 11:02:36 · 616 阅读 · 0 评论 -
三、vue3学习笔记:状态管理bus的使用
文章目录一、子组件和父组件通信:二、兄弟组件如何通信:三、两页面组件之间的通信:3.1 两页面组件之间的通信3.2 $on拓展:单页面监听拓展文档: 一、子组件和父组件通信: src/components/AInput.vue <template> <input @input="handleInput" :value="value"> </template&g...原创 2019-09-08 17:11:18 · 1850 阅读 · 3 评论 -
四、vue3学习笔记:状态管理vuex
一、store中定义的常量在页面中使用 src/store/state.js const state = { appName: 'admin' } export default state src/store/module/user.js const state = { userName: 'sun' } const mutations = { // } const ...原创 2019-09-23 11:16:57 · 238 阅读 · 0 评论