会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
web格调
真正在努力的,日子是不会舒服的。而只要自己变优秀了,其他的事情自然就会跟着好起来。
博客园
新随笔
联系
管理
上一页
1
···
6
7
8
9
10
11
12
下一页
2020年11月30日
vue 获取页面高度
摘要: mounted(){ window.onresize = () => { return (() => { window.fullHeight = //获取到的高度 document.documentElement.clientHeight; })() }; } 获取当前盒子坐标 宽度 let box
阅读全文
posted @ 2020-11-30 15:59 web格调
阅读(9316)
评论(0)
推荐(0)
编辑
vue 通过点击放回上一个页面
摘要: 1、通过:this.$router.go(-1) 2、通过:this.$router.back()
阅读全文
posted @ 2020-11-30 14:48 web格调
阅读(261)
评论(0)
推荐(0)
编辑
2020年11月27日
vue中限制v-for渲染的数量
摘要: 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)
编辑
2020年11月26日
css 特殊标签选择器
摘要: :first-child 选中第一标签
阅读全文
posted @ 2020-11-26 09:20 web格调
阅读(96)
评论(0)
推荐(0)
编辑
2020年11月18日
vue常用的两种跳转方式
摘要: 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)
编辑
2020年11月11日
vue项目手机端适配
摘要: 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)
编辑
2020年11月4日
vue获取滚动的距离
摘要: 屏幕滚动距离 window.addEventListener("scroll", this.handleScroll); dmo document.getElementById('scroll').scrollLeft/scrollTop
阅读全文
posted @ 2020-11-04 11:44 web格调
阅读(3163)
评论(0)
推荐(0)
编辑
2020年9月23日
微信小程序单个页面设置json
摘要: navigationBarBackgroundColor HexColor #000000 导航栏背景颜色,如 #000000 navigationBarTextStyle string white 导航栏标题颜色,仅支持 black / white navigationBarTitleText s
阅读全文
posted @ 2020-09-23 17:24 web格调
阅读(1484)
评论(0)
推荐(0)
编辑
2020年9月15日
微信小程序获取状态栏高度
摘要: 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)
编辑
2020年9月4日
微信小程序放回顶部
摘要: 页面返回顶部<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
下一页
公告