前端
文章平均质量分 92
前端
miracleo_
这个作者很懒,什么都没留下…
展开
-
idea vue快速入门
首先在idea下创建一个空的项目添加一个demo模块terminal:npm install nrm -g // 全局安装nrmterminal:cd demoterminal:npm init -y // 初始化模块terminal:npm install vue --save // 模块内安装vue创建hello.html<!DOCTYPE html&g...原创 2019-08-19 16:06:54 · 610 阅读 · 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 · 37958 阅读 · 0 评论 -
一、vue学习笔记:vue-cli3创建vue项目,并配置路由
参考网址:https://www.jianshu.com/p/d6de1662a2c2原创 2019-09-03 21:09:17 · 1284 阅读 · 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 · 484 阅读 · 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 · 1753 阅读 · 3 评论 -
四、vue3学习笔记:状态管理vuex
一、store中定义的常量在页面中使用src/store/state.jsconst state = { appName: 'admin'}export default statesrc/store/module/user.jsconst state = { userName: 'sun'}const mutations = { //}const ...原创 2019-09-23 11:16:57 · 202 阅读 · 0 评论