摘要:
swiper估计大家经常用,也都有了解,最近再一次项目当中用到了swiper并且发现了一个问题。 就是给swiper-slide添加事件后,有时候会发生事件失效。 例如:会将slide中所有的代码克隆一次,这会导致你slide中如果包含id的话,导致控制问题。在这种情况,可以将id改成class,这 阅读全文
posted @ 2021-03-11 16:19
小生不才。
阅读(2999)
评论(0)
推荐(0)
摘要:
效果与a标签的target=_blank是一样的,只不过不用点击,直接打开 1、在router.js里新加一个页面路由 { path: '/helloWorld', name: 'HelloWorld', component: () => import('../components/HelloWor 阅读全文
posted @ 2021-03-11 15:15
小生不才。
阅读(3007)
评论(0)
推荐(0)
摘要:
在main.js里加指令 //创建自定义指令 v-downVue.directive('down', { inserted: (el, binding) => { el.style.cssText = 'cursor: pointer;color:write;' el.addEventListene 阅读全文
posted @ 2021-03-11 14:34
小生不才。
阅读(4270)
评论(0)
推荐(0)

浙公网安备 33010602011771号