Handles the beforeunload window event. ... useEffect(() => { const onUnload = cb.current; window.addEventListener('beforeunload', onUnload); return ...
確定! 回上一頁