![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue常见问题
别凶小晗.
这个作者很懒,什么都没留下…
展开
-
promise.all的使用
let result = Promise.all([promise1, promise2, promise3]);result.then(function(res) { console.log(res);});转载:https://zhuanlan.zhihu.com/p/41502945转载 2022-01-17 18:06:01 · 83 阅读 · 0 评论 -
Vue常见问题总结
1、active-class是哪个组件的属性?嵌套路由怎么定义?答:vue-router模块的router-link组件。2、怎么定义vue-router的动态路由?怎么获取传过来的动态参数?答:在router目录下的index.js文件中,对path属性加上/:id。使用router对象的params.id3、vue-router有哪几种导航钩子?答:三种,一种是全局导航钩子:router.beforeEach(to,from,next),作用:跳转前进行判断拦截。第二种:组件内的钩子;第三种:原创 2020-10-29 09:44:14 · 1014 阅读 · 0 评论