• 如下图,我要获取到点击的li

  • 我的代码

  • return中的内容

  • 函数

    —这里要加上 event.persist()
    否则只有第一次点击能够获取到target,再次会报错,显示target:null,报错信息:Warning: This synthetic event is reused for performance reasons.

  • 本小白理解太粗泛了,要了解深入点的推荐看这篇
    https://www.jianshu.com/p/bf390141fae8

2020/09/20 React中获取target(报错信息Warning: This synthetic event is reused for performance reasons.)相关推荐

  1. React报错Warning: This synthetic event is reused for performance reasons. If you‘re seeing this, 解决方法

    项目场景: 使用React的NavLink标签作为菜单列表,点击菜单列表按钮,动态更换菜单名称 问题描述 点击菜单NavLink时报错出现如下信息 Warning: This synthetic ev ...

  2. [react] This synthetic event is reused for performance reasons. If you‘re seeing this, you‘re access

    error This synthetic event is reused for performance reasons. If you're seeing this, you're accessin ...

  3. 【react】This synthetic event is reused for performance reasons.

    html代码 <form onSubmit={this.submit.bind(this)}><input type="text" name="user ...

  4. IDEA中@override注解报错信息“Method does not override method from its superclass“

    IDEA中@override注解报错信息"Method does not override method from its superclass" 出现问题原因: 1. 首先查看这 ...

  5. meteor中autoform的报错信息中文化

    将这个文件放置到lib/error_message中可以覆盖原始的英文报错信息 SimpleSchema.messages({ required: "[label] 是必填项", ...

  6. shell 获取ora报错信息_频发:故障排除之又见 ORA-4031丨云和恩墨技术通讯

    亲爱的读者朋友: 为了及时共享行业案例,通知共性问题,达成共享和提前预防,我们整理和编辑了<云和恩墨技术通讯>,通过对过去一段时间的知识回顾,故障归纳,以期提供有价值的信息供大家参考.同时 ...

  7. shell 获取ora报错信息_带你了解企业是如何编写脚本的-第2篇:Shell脚本规范

    在带你了解企业是如何编写脚本的-第一篇:认识脚本这篇文章中,我对脚本进行了一些基本的讲解,那么今天我们就来了解一下Shell脚本有哪些规范(约定俗成). 俗话说无规矩不成方圆,想要长远的发展就需要制定 ...

  8. shell 获取ora报错信息_ORA-04030: 在尝试分配...字节(...)时进程内存不足的原因分析...

    概述 前段时间使用的oracle 11g数据库,在用一段时间后(开始要较长时间才出现,后来较短时间就出现),频繁报ORA-04030错误,具体错误信息是 ORA-04030: 在尝试分配...字节(. ...

  9. react中使用Route报错` A <Route> is only ever to be used as the child of <Routes> element, never rendered`

    解决方法:修改react-router-dom的依赖版本为"react-router-dom": "^4.2.2",

最新文章

  1. dx200手环使用方法_硅胶手环的缺点有哪些?
  2. 【问题收集·中级】关于XMPP使用Base传送图片
  3. python语言学习:python语言学习中的定义类、定义函数、封装api等详细攻略
  4. 产品入门首月成长报告 | PMcaff-干货
  5. day6作业--游戏人生
  6. 序列二次规划_最优控制与规划
  7. 实际生产中,微服务用 Spring Cloud 多还是 Dubbo 多?
  8. Kotlin 1.3带来稳定的协程、合约及其他
  9. 国内电波钟和石英钟表相比有何优势?
  10. ads pspice 导入_ADS中使用pspice模型
  11. Win11键盘无法输入任何东西怎么解决?
  12. 华为S9306交换机版本升级及补丁安装步骤
  13. 全国企业信用信息 网站
  14. 微信小程序 实现换肤功能
  15. background背景色
  16. 活体检测 Face Anti-Spoofing Using TransformersWith Relation-Aware Mechanism 学习笔记
  17. 象棋对战js代码实现
  18. MCAD/MCSD课程选择对比
  19. 140.深度学习分布式计算框架-3
  20. 【GXOI/GZOI2019】与或和【单调栈】

热门文章

  1. html 保存 mysql file_前端HTML5几种存储方式的总结
  2. mysql insert 阻塞_insert遭遇阻塞
  3. 【零信任落地案例】北京芯盾时代电信运营商零信任业务安全解决方案落地项目
  4. 圣思园——Java SE Lesson 2
  5. latex 矩阵叫行列编号
  6. python从键盘输入一个字符串、将小写字母全部_从键盘输入一个字符串,将其中的小写字母全部转换成大写字母...
  7. JZOJ 5207【GDOI2018模拟7.7】暴力大神hxx
  8. jquery点击图片放大效果
  9. linux md文件 编辑,用Vim写md文档的简单姿势
  10. leetcode 714. 买卖股票的最佳时机含手续费(java)