vue
旮旯里的程序员
这个作者很懒,什么都没留下…
展开
-
vue :style 使用calc()
css calc() 可以给% 和 rem等单位加减px可以给100%的宽度减掉15px.title{ width:calc(100% - 15px);}如何在:style使用calc()<div :style="aaa"></div>aaa() { let w = '50%'; let ml = '10%'; return {width: `calc(${w} + 2px)`, marginLeft: `calc(${..原创 2021-11-29 20:34:34 · 11505 阅读 · 0 评论 -
vue页面内嵌iOS App搁置一段时间后this.$router.push跳转失效
最近发现了一个问题页面内嵌在App内搁置一段时间后跳转失效了原本以为是@click失效了 测试后发现点击有效 this.$router.push未生效感觉像是this失效了this.$router.push({ path: '/home'})解决办法1.引入router 使用router.push进行跳转import router from "@/router"router.push({ path:'/home'})2.使用a标签跳转3.使用wind原创 2021-11-18 19:40:58 · 3121 阅读 · 0 评论