Handles the beforeunload window event. Use the useRef() hook to create a ref for the callback function, fn . Use the useEffect() hook and EventTarget.
確定! 回上一頁