- 博客(2)
- 收藏
- 关注
原创 jquery 使用动画animate抖动问题
这是我自己目前所知的两种情况是使用animate时由于前置动画没有执行完成就开始执行第二段animate产生的抖动 解决方法在animate()前面添加stop()$(dome).stop().animate(),这也是最常见的一种通过监听手指触摸,鼠标滚动等事件,去执行页面动态设置scrollTop的animate操作,在监听时,为了预防多次触发事件,我们都会给事件加上一个节流,animate方法前面也加上了stop(), 但是在ie浏览器中鼠标滚动时还是出现抖动情况,我个人想法是,因为在鼠标滚动
2020-05-09 16:46:37 826
原创 使用vuecli时axios的小技巧
get方法axios.get('/user?ID=12345') .then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });`post方法axios.post('/user', { firstName: ...
2018-12-01 17:58:16 143
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人