2020/09/20 React中獲取target(報錯信息Warning: This synthetic event is reused for performance reasons.)

如下圖,我要獲取到點擊的li 我的代碼 return中的內容 函數 —這裏要加上 event.persist() 否則只有第一次點擊能夠獲取到target,再次會報錯,顯示target:null,報錯信息:Warning: This synthetic event is reused for performance reasons. 本小白理解太粗泛了,要了解深入點的推薦看這篇 https://w
相關文章
相關標籤/搜索