在 react-router 进行路由管理时,可以使用 Prompt 组件实现此功能,其中的 message 属性可以接受一个函数,返回 string 的时候就提示,默认为window.
確定! 回上一頁