会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
javahcke
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2019年5月25日
vue判断滚动条到底部
摘要: mounted() { this.$nextTick(() => { // 进入nexTick var bady = document.getElementById("dody"); // 获取滚动条的dom // console.log("距顶部"+scrollTop+"可视区高度"+window
阅读全文
posted @ 2019-05-25 18:04 javahcke
阅读(4883)
评论(0)
推荐(0)
2019年4月11日
vue 路由守卫
摘要: router.beforeEach((to, from, next) => { const nextRoute = [ 'login']; var token = window.localStorage.token; if(token > 0 ){ next(); }else{ // next({
阅读全文
posted @ 2019-04-11 16:47 javahcke
阅读(180)
评论(0)
推荐(0)
2019年4月2日
vue配置404页面
摘要: path星号表示没有这个路由 name表示去这个地址 component这个页面引入的时候叫的名字
阅读全文
posted @ 2019-04-02 15:34 javahcke
阅读(583)
评论(0)
推荐(0)
2019年3月21日
animate.css 动画的使用
摘要: $('#animatedClose').removeClass().addClass('fadeInDownBig animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend
阅读全文
posted @ 2019-03-21 11:07 javahcke
阅读(164)
评论(0)
推荐(0)
2018年11月22日
怎么把Thu Nov 22 2018 10:49:36 GMT+0800转换成正常日期
摘要: this.data //Thu Nov 22 2018 10:49:36 GMT+0800 this.date_of_birth = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() + ' ' + dat
阅读全文
posted @ 2018-11-22 11:07 javahcke
阅读(981)
评论(0)
推荐(0)
2018年10月31日
img添加预加载图片
摘要: < img src="images/logo.png" onerror="javascript:this.src='images/logoError.png';">
阅读全文
posted @ 2018-10-31 19:21 javahcke
阅读(218)
评论(0)
推荐(0)
vue后退上个页面
摘要: this.$router.back(-1);
阅读全文
posted @ 2018-10-31 19:19 javahcke
阅读(212)
评论(0)
推荐(0)
2018年10月16日
html禁止页面滚动
摘要: <div @touchmove.prevent></div> <div @touchmove.prevent></div> @touchmove.prevent //加到标签上禁止滚动
阅读全文
posted @ 2018-10-16 11:31 javahcke
阅读(381)
评论(0)
推荐(0)
2018年7月5日
任意标签跳转页面
摘要: onclick ="javascript:window.location.href ='details.html'" //加在任意标签上页面跳转
阅读全文
posted @ 2018-07-05 09:51 javahcke
阅读(173)
评论(0)
推荐(0)
2018年6月29日
vue获取路由地址栏url里面的指定参数
摘要: this.$route.query.gid //gid是获取指定参数的名字
阅读全文
posted @ 2018-06-29 11:19 javahcke
阅读(1438)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告