会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
天空的城市
博客园
首页
新随笔
联系
订阅
管理
2019年9月28日
点击导航平滑滚动到指定锚点
摘要: //点击导航铆钉到指定位置 goDetails(index) { this.current = index; let height = Number(this.$refs['navleft'].offsetHeight)// 导航的高度 let toTop = this.$refs.single[index].offsetTop // index对应内容的高度 let total = index
阅读全文
posted @ 2019-09-28 11:54 天空的城市
阅读(1249)
评论(0)
推荐(0)
编辑
公告