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

浙公网安备 33010602011771号