如果h5的标签<vedio>不能满足你的需求,那就用这个组件Vue-Video-Player吧,也许可以覆盖到你的需求。<video-playerclass="video-player vjs-cus
顺晟科技
2021-08-21 12:01:05
59
我看到有2种路由的写法,一种是:export default {‘/’: ‘Home’,‘/about’: ‘About’}另外一种是:export default new Router({routes: [{path: ‘/’,name: ‘HelloWorld’,component: HelloWorld}]})
顺晟科技:
上面那个没有 new 的,只是把下面的 routes 部分提取出来了而已,在别的地方还是要 new 的
一种new出来的,一种没有new出来,请问这2种写法有区别吗? 什么情况下该用哪一种?
02
2021-09
29
2021-08
21
2021-08
19
2021-06
16
2021-06