V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  pyplayer  ›  全部回复第 8 页 / 共 8 页
回复总数  143
1  2  3  4  5  6  7  8  
2020-04-10 23:15:14 +08:00
回复了 lalala139 创建的主题 程序员 怎么搭建“远程局域网”,用来联机打游戏
今天刚好讨论这个,忘了 zerotier 这个软件的名字了 看到这想起来了
2020-04-07 20:23:30 +08:00
回复了 tikazyq 创建的主题 程序员 收获人生第一个 5k Star 开源项目,经验教训分享给大家
Star+1 闲下来好好看下
@des
@yyss8
e 确实没变 null e.target 变 null 了 后来先把 e.target 赋给 temp 是可以的,不过警告了
arning: This synthetic event is reused for performance reasons. If you're seeing this, you're accessing the property `target` on a released/nullified synthetic event. This is set to null. If you must keep the original synthetic event around, use event.persist().
查了下 如果在 react 中想异步访问事件属性(如在 setTimeout 内),应该在是处理事件时调用 event.persist(),这会从事件池中移除该合成函数并允许对该合成事件的引用被保留下来
1  2  3  4  5  6  7  8  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   740 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 19ms · UTC 21:10 · PVG 05:10 · LAX 14:10 · JFK 17:10
Developed with CodeLauncher
♥ Do have faith in what you're doing.