摘要: 组件之间的关系 1. 父子关系 1.1 父传子——使用自定义属性 props里的值都不建议去修改 //父组件 <son :msg="message" :user="userinfo"></son> data(){ return{ message:'hello', userinfo:{ name:'张 阅读全文
posted @ 2021-09-23 01:07 1940 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 1. 什么是前端路由 Hash地址(锚链接#)与组件之间的对应关系 <a href="#a"></a> <div id="a"></div> Hash地址中#往后的部分就是hash地址 http://localhost:8080/#/Home Hash地址中/往后的参数项,叫做路径参数 http:/ 阅读全文
posted @ 2021-09-23 01:04 1940 阅读(61) 评论(0) 推荐(0) 编辑