上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: mounted(){ window.onresize = () => { return (() => { window.fullHeight = //获取到的高度 document.documentElement.clientHeight; })() }; } 获取当前盒子坐标 宽度 let box 阅读全文
posted @ 2020-11-30 15:59 web格调 阅读(9316) 评论(0) 推荐(0) 编辑
摘要: 1、通过:this.$router.go(-1) 2、通过:this.$router.back() 阅读全文
posted @ 2020-11-30 14:48 web格调 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 1.截取循环的数据 v-for="(item,index) in domainList.slice(0, 2)" 用这样的方法可以截取循环的数据长度,从而控制循环的次数 2.通过v-if来控制 v-for="(item,index) in domainList" v-if="index<3" 在标签 阅读全文
posted @ 2020-11-27 16:13 web格调 阅读(5631) 评论(0) 推荐(1) 编辑
摘要: :first-child 选中第一标签 阅读全文
posted @ 2020-11-26 09:20 web格调 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1,标签跳转 <router-link to='two.html'><button>点我到第二个页面</button></router-link> 2,点击事件跳转 html : <button @click="hreftwo" class="test-one">点我到第二个页面</button> 阅读全文
posted @ 2020-11-18 09:20 web格调 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 1,安装 flexible和 postcss-px2rem(命令行安装)npm install lib-flexible --save npm install postcss-px2rem --save 2, 引入lib-flexible在项目入口文件main.js 中引入lib-flexible 阅读全文
posted @ 2020-11-11 14:48 web格调 阅读(7695) 评论(0) 推荐(0) 编辑
摘要: 屏幕滚动距离 window.addEventListener("scroll", this.handleScroll); dmo document.getElementById('scroll').scrollLeft/scrollTop 阅读全文
posted @ 2020-11-04 11:44 web格调 阅读(3163) 评论(0) 推荐(0) 编辑
摘要: navigationBarBackgroundColor HexColor #000000 导航栏背景颜色,如 #000000 navigationBarTextStyle string white 导航栏标题颜色,仅支持 black / white navigationBarTitleText s 阅读全文
posted @ 2020-09-23 17:24 web格调 阅读(1484) 评论(0) 推荐(0) 编辑
摘要: data: { statusbar: 0 }, 页面获取状态栏高度 onLoad: function (e) { const res = wx.getSystemInfoSync() var statusbarH = res.statusBarHeight this.setData({ status 阅读全文
posted @ 2020-09-15 14:36 web格调 阅读(5111) 评论(0) 推荐(0) 编辑
摘要: 页面返回顶部<image src='/images/top.png' class='goTop' hidden='{{!floorstatus}}' bindtap="goTop"></image> .goTop{ height: 80rpx; width: 80rpx; position: fix 阅读全文
posted @ 2020-09-04 15:31 web格调 阅读(250) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页