cheroky 最近的时间轴更新
cheroky

cheroky

V2EX 第 181030 号会员,加入于 2016-07-09 13:39:28 +08:00
cheroky 最近回复了
2019-09-19 20:54:23 +08:00
回复了 cheroky 创建的主题 程序员 一年半前端,最近突然开始迷茫了,转游戏行业可行么?
@baiguangan 哎,大环境好像都不咋地
2019-09-19 20:53:57 +08:00
回复了 cheroky 创建的主题 程序员 一年半前端,最近突然开始迷茫了,转游戏行业可行么?
@v2student 当时校招面过酷家乐,做的是网页装修 3d 展示的,那个可能还有意思一些
2019-09-19 20:49:20 +08:00
回复了 cheroky 创建的主题 程序员 一年半前端,最近突然开始迷茫了,转游戏行业可行么?
@liaojl 最近闹着裁员的公司
2019-09-19 20:48:49 +08:00
回复了 cheroky 创建的主题 程序员 一年半前端,最近突然开始迷茫了,转游戏行业可行么?
@xysall 大牛,你的经历真的传奇
2019-09-19 20:38:40 +08:00
回复了 cheroky 创建的主题 程序员 一年半前端,最近突然开始迷茫了,转游戏行业可行么?
@hmxxmh 但是感觉一眼能看到头的,对自己提升也很小
2019-09-19 20:37:52 +08:00
回复了 cheroky 创建的主题 程序员 一年半前端,最近突然开始迷茫了,转游戏行业可行么?
@jadehare 感觉是大佬,但是实际情况感觉是转方向进大厂游戏部门难之又难。。。
2019-07-13 16:06:19 +08:00
回复了 cheroky 创建的主题 JavaScript 前两天遇到一个面试题,来跟大家一起讨论一下
@IsaacYoung 确实是这个结果,但是按面试官那个那个情景执行顺序就不对
2017-11-03 17:38:52 +08:00
回复了 cheroky 创建的主题 JavaScript 用 requestAnimationFrame 写动画发现有些问题想请教一下各位
@jamesliu96 是我蠢了蠢了。。。多谢多谢
2017-11-03 17:34:28 +08:00
回复了 cheroky 创建的主题 JavaScript 用 requestAnimationFrame 写动画发现有些问题想请教一下各位
@jamesliu96 0.0 真的没写 return,试了下可以了!!!但就是不太懂为啥得写 return ?我看 stackoverflow 上也没写 return,误人子弟啊
2017-11-03 17:09:11 +08:00
回复了 cheroky 创建的主题 JavaScript 用 requestAnimationFrame 写动画发现有些问题想请教一下各位
@jamesliu96 我也觉得奇怪,可能是我方法有点问题,我把_animation 贴出来

```
_animation(target,direction) {
var top = this.entity.offsetTop;
//console.log(top,target,direction);
if(direction) {
top-=18;
} else {
top++;
}
if((!direction && top>=target) || (direction && top<=target)) {
this.animate_state = "IDLE";
return;
//callback() 在这死循环
}
var bindAnimation = this._animation.bind(this,target,direction);

this.entity.style.top = top+'px';
requestAnimationFrame(bindAnimation);
}
```
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   931 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 22:20 · PVG 06:20 · LAX 15:20 · JFK 18:20
Developed with CodeLauncher
♥ Do have faith in what you're doing.