problem react hook模式,使用useRef,设置click事件监听 const parentRef = useRef(null); useEffect(()=>{ parentRef.current?.addEventListener('click',(<